mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description
Add an API for users to get version of current package. example usage:
```js
import { env } from 'onnxruntime-node';
console.log(env.versions.node); // output "1.16.0"
```
```js
import { env } from 'onnxruntime-web';
console.log(env.versions.web); // output "1.16.0"
console.log(env.versions.common); // output "1.16.0"
console.log(env.versions.node); // output "undefined"
```
#16156
36 lines
1.3 KiB
JSON
36 lines
1.3 KiB
JSON
{
|
|
"devDependencies": {
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/node": "^18.14.6",
|
|
"@types/npmlog": "^4.1.4",
|
|
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
"@typescript-eslint/parser": "^5.54.1",
|
|
"clang-format": "^1.8.0",
|
|
"dir-compare": "^4.0.0",
|
|
"eslint": "^8.35.0",
|
|
"eslint-plugin-header": "^3.1.1",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-jsdoc": "^40.0.1",
|
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
"eslint-plugin-unicorn": "^46.0.0",
|
|
"fs-extra": "^11.1.0",
|
|
"jszip": "^3.10.1",
|
|
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
"npmlog": "^7.0.1",
|
|
"terser": "^5.16.5",
|
|
"ts-loader": "^9.4.2",
|
|
"typescript": "^4.9.5",
|
|
"webpack": "^5.76.0",
|
|
"webpack-bundle-analyzer": "^4.8.0",
|
|
"webpack-cli": "^5.0.1",
|
|
"worker-loader": "^3.0.8"
|
|
},
|
|
"scripts": {
|
|
"prepare": "tsc --build 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": "node ./scripts/prepare-onnx-node-tests",
|
|
"update-version": "node ./scripts/update-version"
|
|
},
|
|
"license": "MIT"
|
|
}
|