build script not failing the npm script
See original GitHub issuethere are two issues with build.js
- after running the webpack config. the error condition check is incorrect. it should be
stats.hasErrors()
instead of
jsonStats.hasErrors
- if there are any issues with the build then the npm script doesnt exit with error code. maybe use process.exit(1)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Build stage not failing on npm script exit status 2 #424 - GitHub
If I do, my bash command to run an npm build script is exiting with error 2 and the build step still continues...
Read more >npm run build - fails to compile despite development version ...
Failed at the portfolio@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ...
Read more >scripts - npm Docs
To create "pre" or "post" scripts for any scripts defined in the "scripts" section of the package.json , simply create another script with...
Read more >Build not failing when npm returns a non zero exit code
As per screenshot, I have a build step that is not reporting a failure even though my build script is failing. The output...
Read more >Build was terminated: Build script returned non-zero exit code ...
Deploy failed NPM. I am facing the error on deployment. Error on deployment. Build script returned non-zero exit code: 2 - I added...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should be able to push to your own fork and PR from that fork.
ok cool!