"scripts": {
"release": "npm run release| tee output1.txt",
"build":"npm run build | tee output.txt"
},
Then I used:
npm run release
Output:Killed
Please help I pass two test cases one is remaining
Scripts tag is generally used to automate repetitive tasks. You can define any number of these.
"scripts": {
"release": "npm run release| tee output1.txt && npm run build | tee output.txt",
},
The && is referred to as AND_IF helps you to run both the commands in sequence that means if first command fails to execute it won't run the next command.
This is a perfect case for post scripts:
"scripts": {
"release": "do something",
"postrelease": "tee output1.txt",
"build": "do something different",
"postbuild": "tee output.txt"
},
npm run release, that might be the issue.