sezna / nps

NPM Package Scripts -- All the benefits of npm scripts without the cost of a bloated package.json and limits of json
MIT License
1.43k stars 93 forks source link

Support colon as a path field delimiter #216

Open cursedcoder opened 4 years ago

cursedcoder commented 4 years ago

Problem description: npx nps init -yml will take this:

    "infra:create": "node src/command/create.js",
    "infra:destroy": "node src/command/destroy.js",

And make this:

scripts:
  infra:
    create: node src/command/create.js
    destroy: node src/command/destroy.js

Now it's impossible to call it as previously: npx nps infra:create, but should be npx nps infra.create.

I personally find this breaking the logic.

Suggested solution: Allow using : as path resolver.