diff --git a/packages/image-io/typescript/package.json b/packages/image-io/typescript/package.json index faf44dbf3..7ecdc2cc6 100644 --- a/packages/image-io/typescript/package.json +++ b/packages/image-io/typescript/package.json @@ -1,33 +1,26 @@ { - "name": "itk-image-io", + "name": "@itk-wasm/image-io", "version": "1.0.0", - "description": "Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.", + "description": "Input and output for scientific and medical image file formats.", "type": "module", - "module": "./dist/bundles/itk-image-io.js", - "types": "./dist/index.d.ts", + "module": "./dist/bundles/image-io.js", + "types": "./dist/src/index.d.ts", "exports": { ".": { - "browser": "./dist/bundles/itk-image-io.js", - "node": "./dist/itk-image-io.node.js", - "default": "./dist/bundles/itk-image-io.js" + "browser": "./dist/bundles/image-io.js", + "node": "./dist/bundles/image-io.node.js", + "default": "./dist/bundles/image-io.js" } }, "scripts": { - "start": "vite -c build/vite.config.js", - "test": "npm run test:node && npm run test:browser", - "test:node": "ava test/node/*.js", - "test:browser": "npm run test:browser:chrome && npm run test:browser:firefox", - "test:browser:firefox": "start-server-and-test start http-get://localhost:5173 cypress:runFirefox", - "test:browser:chrome": "start-server-and-test start http-get://localhost:5173 cypress:runChrome", - "test:browser:debug": "start-server-and-test start http-get://localhost:5173 cypress:open", - "cypress:open": "npx cypress open", - "cypress:runChrome": "npx cypress run --browser chrome", - "cypress:runFirefox": "npx cypress run --browser firefox", + "start": "npm run copyShoelaceAssets && vite -c build/vite.config.js", + "test": "echo \"Error: no test specified\" && exit 1", "build": "npm run build:tsc && npm run build:node && npm run build:browser && npm run build:demo", "build:node": "rollup -c ./build/rollup.node.config.js", "build:browser": "rollup -c ./build/rollup.browser.config.js", "build:tsc": "tsc --pretty", - "build:demo": "vite -c build/vite.config.js build" + "copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/", + "build:demo": "npm run copyShoelaceAssets && vite -c build/vite.config.js build" }, "keywords": [ "itk", @@ -38,25 +31,27 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "itk-wasm": "^1.0.0-b.62" + "itk-wasm": "^1.0.0-b.126" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.0.0", "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.0.1", - "@rollup/plugin-terser": "^0.3.0", - "@rollup/plugin-typescript": "^10.0.1", - "@types/node": "^18.11.18", - "ava": "^5.1.0", - "cypress": "^12.3.0", + "@rollup/plugin-node-resolve": "^15.1.0", + "@rollup/plugin-terser": "^0.4.0", + "@rollup/plugin-typescript": "^11.1.1", + "@shoelace-style/shoelace": "^2.5.2", + "@types/node": "^20.2.5", + "debug": "^4.3.4", "rollup": "^3.9.0", "rollup-plugin-copy": "^3.4.0", "rollup-plugin-ignore": "^1.0.10", - "rollup-plugin-polyfill-node": "^0.11.0", - "start-server-and-test": "^1.15.2", - "typescript": "^4.9.4", - "vite": "^4.0.0", - "vite-plugin-static-copy": "^0.13.0" + "rollup-plugin-polyfill-node": "^0.12.0", + "shx": "^0.3.4", + "supports-color": "^9.3.1", + "tslib": "^2.5.2", + "typescript": "^5.0.4", + "vite": "^4.3.3", + "vite-plugin-static-copy": "^0.14.0" }, "repository": { "type": "git",