4 ms·
`&&` works in my NPM scripts on Windows 10. Here's one line from my current project: "build-intl": "npm run build-intl-translations && npm run build-intl-
by hungerstrike 9y ago
`&&` works in my NPM scripts on Windows 10.
Here's one line from my current project:
"build-intl": "npm run build-intl-translations && npm run build-intl-locales",
Perhaps this is something that didn't work early on. I've been using Node.js on Windows since before v0.10 and I have had some issues here and there but these days it's a dream.
- EnderMB 9y agoIIRC, Powershell and CMD have different chain syntax, so it depends which one you're running from. If I'm using CMD I can use &&, whereas | works on PS. I might be wildly wrong on this one, but I'm a big fan of writing "git add . && git commit -m "Commit Message" && git push origin master", and I noticed that in a Powershell window I had to use the vertical bar instead of double-ampersands.
- hungerstrike 9y agoWow, I have to try that out later. I have always avoided powershell in favor of CMD because I wasn’t sure of what powershell extras would get my way. Seems like this would be one example of that.