allow "open" on windows when using an npm script?
Pomax opened this issue · 0 comments
Pomax commented
since npm scripts don't let you run different commands depending on the platform you are on (after all, "node scripts just work") having to use "start" rather than "open" when in windows actually presents a really big problem in terms of a clean run script. The only workaround right now is to create a node script that requires open
, then checks process.platform
and then runs the correct open command, which feels kind of gross.