Skip to content

Instantly share code, notes, and snippets.

@wingsuitist
Created October 28, 2017 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wingsuitist/5397e3b41e56ecfd5e59b36e51efdfc0 to your computer and use it in GitHub Desktop.
Save wingsuitist/5397e3b41e56ecfd5e59b36e51efdfc0 to your computer and use it in GitHub Desktop.
package.json debug task with source env.sh
{
"name": "somenode-stuff",
"version": "1.0.0",
"description": "Some Node Stuff",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "source env.sh; nodemon dist/index.js",
"debug": "source env.sh; node --inspect-brk=9229 dist/index.js"
},
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment