-
Notifications
You must be signed in to change notification settings - Fork 916
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
Re-implement dev dependency automatic handling #1161
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/8gkuu8x9s |
70dfbec
to
949783e
Compare
@@ -21,8 +21,8 @@ exports[`snowpack install config-alias: import-map.json 1`] = ` | |||
`; | |||
|
|||
exports[`snowpack install config-alias: output 1`] = ` | |||
"[snowpack] ! installing dependencies… |
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.
RIP ellipsis 😢
(I don’t actually care; it’s just technically correct, but agree it looks bad in monospaced fonts)
} catch (err) { | ||
logger.error(err.message); | ||
logger.debug(err.stack); | ||
process.exit(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.
Much cleaner!
@@ -114,10 +114,9 @@ function resolveWebDependency( | |||
exportMapEntry?.require || | |||
exportMapEntry; | |||
if (typeof exportMapValue !== 'string') { | |||
logger.error( | |||
throw new 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.
👍🏻
Changes
process.exit()
that should have been handle-able exceptions.Testing
PR Walkthrough