Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use with nps or other script runners #23

Closed
AndersDJohnson opened this issue Dec 31, 2017 · 1 comment
Closed

Cannot use with nps or other script runners #23

AndersDJohnson opened this issue Dec 31, 2017 · 1 comment

Comments

@AndersDJohnson
Copy link

The ifScript logic sprinkled throughout does not understand scripts defined outside of package.json, e.g., via nps.

@kentcdodds
Copy link
Owner

Thanks @AndersDJohnson. This is true. That said, I don't want to worry about supporting that directly. Instead you can simply do this:

{
  "scripts": {
    "start": "nps",
    "build": "nps build",
    "lint": "nps lint"
  }
}

I realize that slightly defeats the purpose of nps, but I think it'll keep this project more simple and straightforward. Also, projects where I'm using kcd-scripts don't use nps because I only need a handful of scripts so it doesn't fall into the problem space that nps was intended to solve.

Thanks though!

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

No branches or pull requests

2 participants