I have a npm project which I'm using many flags when calling node.js, so my package.json scripts are a little confusing, like this:
"scripts": {
"test": "node --use_strict -r dotenv/config --experimental-vm-modules node_modules/.bin/jest",
"testwatch": "node --use_strict -r dotenv/config --experimental-vm-modules node_modules/.bin/jest -watchAll",
"start": "node --use_strict -r dotenv/config --experimental-vm-modules ./src/index"
},
Is there a way to specify the node.js flags in a single parameter in the package.json file so that it is passed to all scripts simultaneously? Or if you can give me another suggestion to make these commands more organized it would be useful too. Thanks.