Skip to content

Commit

Permalink
update(package): windows platform run scripts support
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Nov 23, 2023
1 parent eb009e8 commit 999107d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
"dev": "rollup -cw",
"build-test": "rollup -c",
"test": "node --experimental-vm-modules node_modules/.bin/jest --config jest.config.js",
"build": "npm run rm && rollup -c && npm run types",
"build": "npm run rm || rollup -c && npm run types",
"prod": "npm run build && npm run test",
"types": "tsc --declaration --declarationMap --emitDeclarationOnly --allowJs --emitDeclarationOnly --declarationDir dist/types",
"rm": "rmdir /s/q dist || rm -rf ./dist",
"setup": "mkdir dist && npm run types && cd dist",
"init": "npm install && npm run dev",
"repack": "npm run rm && npm run setup && npm run build"
"rm": "rm -rf ./dist",
"test:windows": "cross-env-shell NODE_OPTIONS=--experimental-vm-modules jest --config jest.config.js",
"prod:windows": "npm run build && npm run test:windows"
},
"bugs": {
"url": "https://github.com/fastjs-team/fastjs-next/issues",
Expand Down Expand Up @@ -64,5 +63,8 @@
"rollup": "^4.5.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"dependencies": {
"cross-env": "^7.0.3"
}
}

0 comments on commit 999107d

Please sign in to comment.