onnxruntime/js/package.json
Yulong Wang cc0a6213e4
[js] update versions of a few build dependencies (#13977)
### Description
update versions of a few build dependencies for onnxruntime NPM
packages.

update nodejs version to v16.x in linux CI. v12 is too out-of-dated. see
[nodejs release
schedule](https://github.com/nodejs/release#release-schedule)

### Motivation and Context
- upgrade to latest webpack allows using of latest Node.js LTS version.
previous version of webpack does not work on Node.js v18 and it is fixed
in latest version
- upgrade to latest typescript, ts-loader and other dev deps to
accelerate the build and bundling.
- upgrade also helps to resolve security warnings that may be vulnerable
in out-of-dated version
2022-12-16 17:26:54 -08:00

26 lines
984 B
JSON

{
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@types/npmlog": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"clang-format": "^1.5.0",
"dir-compare": "^4.0.0",
"eslint": "^7.25.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^33.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^31.0.0",
"fs-extra": "^10.1.0",
"jszip": "^3.10.0",
"npmlog": "^6.0.2",
"typescript": "^4.9.4"
},
"scripts": {
"lint": "eslint . --ext .ts --ext .tsx",
"format": "clang-format --glob=\"{scripts/**/*.ts,common/lib/**/*.ts,node/{lib,script,test}/**/*.ts,node/src/**/*.{cc,h},web/{lib,script,test}/**/*.ts,react_native/{android,example,ios,lib}/**/*.{ts,mm,java}}\" --style=file -i",
"prepare-node-tests": "tsc --build scripts && node ./scripts/prepare-onnx-node-tests"
},
"license": "MIT"
}