-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
use fs-extra copy instead of ncp #318
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
"dependencies": { | ||
"run-series": "^1.1.1" | ||
}, | ||
"//": "ncp used to test https://github.com/electron-userland/electron-packager/pull/186", | ||
"///": "(a module (with zero dependencies) that creates a file in node_modules/.bin)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a really unfortunate way to annotate JSON files. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but npm doesn't support other ways (e.g. typescript supports comments in the tsconfig.json) :( |
||
"devDependencies": { | ||
"ncp": "^2.0.0", | ||
"run-waterfall": "^1.1.1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
copy
actually create anArray
on erroring? Because that would be very unfortunate.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answered my own question below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can pass
stopOnError: true
to stop on first error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably update all of the
copy
calls to use that (in a separate PR). Havingerr
be potentially more than one type is problematic for users.