npm run lint
npm test
npm run format
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rimraf dist",
"format": "prettier --write \"**/*.ts\"",
"format-check": "prettier --check \"**/*.ts\"",
"lint": "eslint \"src/**/*.ts\"",
"lint-fix": "eslint --fix \"src/**/*.ts\"",
"prepublishOnly": "npm run build && npm run test",
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest",
"test-watch": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --watch",
"watch": "tsc --build tsconfig.build.json --watch"
},
Issues with Codespaces: It is very slow to load new window with VS Code with local changes.
On Windows in
package.jsonwe need to modify the single quotes to escaped double quotes in order to run commands:Specifically to run npm test:
npm install --save-dev cross-env"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest",(already modified above)Issues with Codespaces: It is very slow to load new window with VS Code with local changes.
To do for Windows:
npm iOR find an alternative.. because according to their GH repo its been archived (see https://github.com/kentcdodds/cross-env). So another similar library would be better.