Skip to content

Conversation

@Hypercubed
Copy link
Contributor

What:

If a user runs nps init in an empty directory with no existing package.json the command fails with a non-user friendly error.

How:

If this "error" is encountered print a friendly error and exit.

Comments:

Instead of exiting out nps init could continue without any package.json scripts and use the local directory as the package-scripts.js path.

Copy link
Collaborator

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super, thanks!

@kentcdodds
Copy link
Collaborator

Hmmm... Something's busted with the build. It looks unrelated so I'll merge this, but we wont get a release until that's fixed and I wont have time to work on it.

@kentcdodds kentcdodds merged commit e52b136 into sezna:master Jun 22, 2018
@Hypercubed Hypercubed deleted the fix/missing-package-json branch June 22, 2018 03:57
@Hypercubed
Copy link
Contributor Author

Looks like my change caused the tests to fail... I'll look.

@Hypercubed
Copy link
Contributor Author

Yeah, my bad... a last minute change added a bug. New PR coming.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants