Skip to content

feat(config): add more config file name and extension #31

@richrdkng

Description

@richrdkng

🚀 Description

For `@nodewell/path to be more usable, multiple config file name and extensions should be added.

💡 Solution

Add support for the following:

  • .pathrc.json
  • .pathsrc.json
  • .pathrc.json5
  • .pathsrc.json5

Also these files can contain JavaScript, JSON, and JSON5 (the content will be automatically detected):

  • .pathrc
  • .pathsrc

Also add a CLI option for custom config files, e.g.: npx @nodewell/path -- --config=paths.js

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions