Skip to content

feat: add support for JS config files#8

Draft
SargeKhan wants to merge 1 commit intobitfinexcom:masterfrom
SargeKhan:feat/js-config-support
Draft

feat: add support for JS config files#8
SargeKhan wants to merge 1 commit intobitfinexcom:masterfrom
SargeKhan:feat/js-config-support

Conversation

@SargeKhan
Copy link

Summary

  • Extends config loading to support both JSON and JS config files
  • JSON files take priority over JS files
  • Maintains backward compatibility with existing JSON configs

Priority order

  1. {env}.{name}.config.json
  2. {name}.config.json
  3. {env}.{name}.config.js
  4. {name}.config.js

Usage

JS config files should export an object with namespace keys:

module.exports = {
  namespace1: { /* config */ },
  namespace2: { /* config */ }
}

Extends config loading to support both JSON and JS config files.
JSON files take priority over JS files.

Priority order:
1. {env}.{name}.config.json
2. {name}.config.json
3. {env}.{name}.config.js
4. {name}.config.js
@SargeKhan SargeKhan marked this pull request as draft January 19, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant