Commit Graph

9 Commits

Author SHA1 Message Date
Jamie Tanna ac013be4e2 fix(workers/global): parse .jsonc files (#44034)
* fix(workers/global): parse `.jsonc` files

As noted in #44033, this leads to cases where
`renovate-config-validator` can't parse a repo's `renovate.jsonc`.

This doesn't currently affect when Renovate itself runs fully.

* test(workers/global): add coverage for `getParsedContent`

This test also validates that the fix introduced in the previous commit
correctly fixes the issue.

This also makes sure that if we change the default JSON-like filenames,
we'll validate that it can be parsed, based on the filename.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-06-16 13:45:14 +00:00
Felipe Santos 153ad89859 feat(config): support TypeScript for global config file (#43381)
* feat(config): support TypeScript for global config file

* Try parse ts as cjs too

* Improve comment
2026-05-17 09:34:01 +00:00
Sergei Zharinov 2b0e80b884 feat!: Switch to ESM modules (#40756) 2026-01-29 14:21:41 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
RahulGautamSingh 37a1a93a06 refactor(config): move code for easier testing (#37297)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-08-04 15:04:55 +00:00
RahulGautamSingh 0d23707604 refactor(logger): remove templating from WARN log messages (#33488) 2025-01-14 13:03:05 +00:00
RahulGautamSingh 0a438657e8 fix(validation): massage config (#28458)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-17 05:04:21 +00:00
RahulGautamSingh de65584bf8 feat(config): validate file config on repo runs (#26379)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-04-13 08:52:28 +00:00