Closed samijaber closed 6 years ago
nps
package.json file:
package.json
{ "scripts": { "start": "echo start", "start:stuff": "echo start:stuff", "start:foo-bar": "echo start:foo-bar" } }
The command executed:
nps init
The output:
module.exports = { scripts: { default: { default: 'echo start', stuff: 'echo start:stuff', foo-bar: 'echo start:foo-bar' } } };
Problem description: foo-bar should be fooBar, which means the package-scripts.js file generated by nps init is broken/invalid JS.
foo-bar
fooBar
package-scripts.js
Suggested solution: Raised a PR at https://github.com/kentcdodds/nps/pull/185
Thanks!
nps
version: latestpackage.json
file:The command executed:
The output:
Problem description:
foo-bar
should befooBar
, which means thepackage-scripts.js
file generated bynps init
is broken/invalid JS.Suggested solution: Raised a PR at https://github.com/kentcdodds/nps/pull/185