You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dev dep exclusion should log on package.json errors #4358
When there is a syntax error in your package.json, your devDependencies won't be excluded.
This is more baffling than anything, I would have expected an error printed out (so that at least I'd know it is my fault 😄).
The problem, which is probably an expectation problem, can be solved by adding a log statement here so that we know that some error happened, maybe filtering it and showing only errors coming from your own package.json.
Activity
[-]Dev dependency exclusion should log on errors[/-][+]Dev dep exclusion should log on package.json errors[/+]horike37 commentedon Oct 9, 2017
Thank you for reporting @arichiardi 👍
I could reproduce the bug on my end.
It had better stop the process and an error printed out in the case.
Step to reproduce
serverless create -t aws-nodejsand create a new projectnpm initinside the servicenpm install --save-dev aws-sdkinside the servicepackage.jsonso that a syntax error occursserverless packageaws-sdkinnode_moduleswithout excludingmedikoo commentedon Jan 19, 2021
We will take into account with #8586