onnxruntime/js/package.json
Yulong Wang 5228332c9f
[js] upgrade JS shared dev dependencies (#17831)
### Description
upgrade JS shared dev dependencies.

- webpack: removed
- eslint: upgrade to latest.
   - eslint config upgraded to compatible with latest version
- typescript upgrade to v5
   - update module "CommonJS" to "Node16" in tsconfig
- update deprecated config "importsNotUsedAsValues" to
"verbatimModuleSyntax"
- remove webpack bundles in onnxruntime-common
2023-10-10 17:44:39 -07:00

39 lines
1.7 KiB
JSON

{
"devDependencies": {
"@types/fs-extra": "^11.0.2",
"@types/mocha": "^10.0.2",
"@types/node": "^18.14.6",
"@types/npmlog": "^4.1.4",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"clang-format": "^1.8.0",
"dir-compare": "^4.2.0",
"esbuild": "^0.19.3",
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^8.51.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^48.0.1",
"fs-extra": "^11.1.1",
"jszip": "^3.10.1",
"mocha": "^10.2.0",
"npmlog": "^7.0.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
"scripts": {
"prepare": "tsc --build scripts",
"lint": "eslint . --ext .ts --ext .tsx",
"format:ts": "clang-format --glob=\"{scripts/**/*.ts,common/{lib,test}/**/*.ts,node/{lib,script,test}/**/*.ts,web/{lib,script,test}/**/*.ts,react_native/{android,example,ios,lib}/**/*.{ts,tsx}}\" --style=file -i",
"format:js": "clang-format --glob=\"{{,common,node,web,react_native}/{*,.*}.{,m,c}js,web/test/e2e/**/*.{,m,c}js}\" --style=file -i",
"format:cf": "clang-format --glob=\"{node/src/**/*.{cc,h},react_native/{android,example,ios,lib}/**/*.{mm,java}}\" --style=file -i",
"format:json": "prettier \"**/*.{json,jsonc}\" --write",
"format:md": "prettier \"**/*.md\" --write",
"format": "npm run format:ts && npm run format:js && npm run format:cf && npm run format:json && npm run format:md",
"prepare-node-tests": "node ./scripts/prepare-onnx-node-tests",
"update-version": "node ./scripts/update-version"
},
"license": "MIT"
}