Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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