onnxruntime/js/web/package.json
Yulong Wang 4712009f8a
[js/web] add target ort.webgpu.min.js (#15780)
### Description
add target ort.webgpu.min.js

WebGPU is experimental feature, so I don't want to put webgpu into the
ort.min.js file. This change adds 2 ways for users to access ort-web
with webgpu:
- using script tag: by URL
`https://cdn.jsdelivr.net/npm/onnxruntime-web@1.15.0/dist/ort.webgpu.min.js`
( this URL is not ready yet )
- using `import()`: use `import { Tensor, InferenceSession } from
'onnxruntime-web/webgpu';` - 'onnxruntime-web/webgpu' instead of
'onnxruntime-web'
2023-05-04 10:05:39 -07:00

78 lines
2.3 KiB
JSON

{
"license": "MIT",
"browser": "dist/ort-web.min.js",
"unpkg": "dist/ort.min.js",
"name": "onnxruntime-web",
"repository": {
"url": "https://github.com/Microsoft/onnxruntime.git",
"type": "git"
},
"author": "fs-eire",
"version": "1.16.0",
"jsdelivr": "dist/ort.min.js",
"dependencies": {
"flatbuffers": "^1.12.0",
"guid-typescript": "^1.0.9",
"long": "^4.0.0",
"onnx-proto": "^4.0.4",
"onnxruntime-common": "file:../common",
"platform": "^1.3.6"
},
"scripts": {
"prepare": "tsc",
"build:doc": "node ./script/generate-operator-md",
"pull:wasm": "node ./script/pull-prebuilt-wasm-artifacts",
"test:e2e": "node ./test/e2e/run",
"build": "node ./script/build",
"test": "tsc --build ../scripts && node ../scripts/prepare-onnx-node-tests && node ./script/test-runner-cli",
"prepack": "node ./script/build && node ./script/prepack"
},
"keywords": [
"ONNX",
"ONNXRuntime",
"ONNX Runtime"
],
"devDependencies": {
"@chiragrupani/karma-chromium-edge-launcher": "^2.2.2",
"@types/chai": "^4.3.4",
"@types/emscripten": "^1.39.6",
"@types/flatbuffers": "^1.10.0",
"@types/karma": "^6.1.0",
"@types/long": "^4.0.1",
"@types/minimatch": "^5.1.2",
"@types/minimist": "^1.2.2",
"@types/mocha": "^10.0.1",
"@types/platform": "^1.3.4",
"@webgpu/types": "^0.1.30",
"base64-js": "^1.5.1",
"chai": "^4.3.7",
"electron": "^23.1.2",
"globby": "^13.1.3",
"karma": "^6.4.1",
"karma-browserstack-launcher": "^1.6.0",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
"karma-edge-launcher": "^0.4.2",
"karma-electron": "^7.3.0",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-safari-applescript-launcher": "^0.1.1",
"karma-sourcemap-loader": "^0.4.0",
"minimatch": "^7.4.2",
"minimist": "^1.2.8",
"mocha": "^10.2.0",
"numpy-parser": "^1.2.3",
"strip-json-comments": "^5.0.0"
},
"main": "dist/ort-web.node.js",
"exports": {
".": {
"node": "./dist/ort-web.node.js",
"default": "./dist/ort.min.js"
},
"./webgpu": "./dist/ort.webgpu.min.js"
},
"types": "./types.d.ts",
"description": "A Javascript library for running ONNX models on browsers"
}