|
27 | 27 | "url": "https://github.com/kitware/vtk-js/issues" |
28 | 28 | }, |
29 | 29 | "homepage": "https://github.com/kitware/vtk-js#readme", |
| 30 | + "main": "./dist/umd/vtk.js", |
30 | 31 | "module": "./dist/esm/index.js", |
31 | 32 | "dependencies": { |
32 | 33 | "@types/webxr": "0.5.5", |
|
99 | 100 | "example:https": "node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https", |
100 | 101 | "example:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https", |
101 | 102 | "build:pre": "patch-package", |
102 | | - "dev:esm": "vite build --watch", |
103 | | - "build": "npm run build:pre && vite build", |
104 | | - "build:release": "npm run lint && npm run build:pre && cross-env NOLINT=1 npm run build", |
| 103 | + "dev:esm": "cross-env BUILD_TARGET=esm vite build --watch", |
| 104 | + "dev:umd": "cross-env BUILD_TARGET=umd vite build --watch", |
| 105 | + "build": "npm run build:esm && npm run build:umd", |
| 106 | + "build:esm": "npm run build:pre && cross-env BUILD_TARGET=esm vite build", |
| 107 | + "build:umd": "npm run build:pre && cross-env BUILD_TARGET=umd vite build", |
| 108 | + "build:release": "npm run lint && cross-env NOLINT=1 npm run build", |
105 | 109 | "release:create-packages": "node ./Utilities/ci/build-npm-package.js", |
106 | 110 | "test": "vitest run", |
107 | 111 | "test:watch": "vitest", |
|
158 | 162 | "pkgRoot": "./dist/esm" |
159 | 163 | } |
160 | 164 | ], |
| 165 | + [ |
| 166 | + "@semantic-release/npm", |
| 167 | + { |
| 168 | + "pkgRoot": "./dist/umd" |
| 169 | + } |
| 170 | + ], |
161 | 171 | [ |
162 | 172 | "@semantic-release/github", |
163 | 173 | { |
|
0 commit comments