So I'm trying to build the javascriptair/site. Inside the package.jsonThere is an npm script that points at a javascript "command" package-scripts. That repository is found https://github.com/kentcdodds/p-s. In Windows it errors out with a JScript error.
Script: C:[path_to_code]\package-scripts.js
Line: 2
Char: 1
Error: Syntax error
Code: 800A03EA
Source: Microsoft JScript compilation error
So in the package.json, what it has is this
"scripts": {
"start": "package-scripts"
}
If I change the package.json to the following:
"scripts": {
"start": "package-scripts.cmd"
}
I can get the server to start. So my question is, why is this happening, and how can we change the package.json to make it cross platform with the same command.
node package-scripts.js? Seems like you try to evaluate node script with microsoft js vm.package-scripts.jsis exporting a simple key/value object and does not do anything.