Skip to content

Commit

Permalink
test(itk-wasm): avoid use of npm link in bindgen test for Windows
Browse files Browse the repository at this point in the history
lstat not found errors from npm.
  • Loading branch information
thewtex committed Mar 13, 2024
1 parent 7ddf1d0 commit ba45c77
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/typescript/itk-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"cypress:runChrome": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser chrome",
"cypress:runFirefox": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
"cypress:runFirefox:ci": "pnpm cypress:install && pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
"start": "pnpm build:workerBundleForTesting && cd test/pipelines/typescript && npm i && npm link ../../.. && npm run build && npm run start",
"start": "pnpm build:workerBundleForTesting && cd test/pipelines/typescript && pnpm build && pnpm start",
"test:wasi": "pnpm test:buildTestPipelines:wasi && pnpm test:runTestPipelines && pnpm test:bindgenTestPipelines:python",
"test": "pnpm test:lint && pnpm test:testPipelines && pnpm test:node && pnpm test:bindgenTestPipelines:python && pnpm test:browser:chrome && pnpm test:browser:firefox",
"test:lint": "ts-standard --fix \"src/**/*.ts\" && standard --fix \"test/node/**/*.js\"",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "test-pipelines",
"version": "1.0.0",
"packageManager": "[email protected]",
"description": "Exercise interface types for bindgen",
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index-all.d.ts",
"exports": {
".": {
"types": "./dist/index-all.d.ts",
"browser": "./dist/index.js",
"node": "./dist/index-node.js",
"default": "./dist/index-all.js"
}
},
"scripts": {
"start": "pnpm copyShoelaceAssets && vite",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
"build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts",
"build:version": "node -p \"'const version = ' + JSON.stringify(require('./package.json').version) + '\\nexport default version\\n'\" > src/version.ts",
"build:tsc": "pnpm build:version && tsc --pretty",
"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": "pnpm copyShoelaceAssets && vite build"
},
"keywords": [
"itk",
"wasm",
"webassembly",
"wasi"
],
"author": "",
"license": "Apache-2.0",
"dependencies": {
"itk-wasm": "workspace:*"
},
"devDependencies": {
"@itk-wasm/image-io": "workspace:*",
"@itk-wasm/mesh-io": "workspace:*",
"@shoelace-style/shoelace": "^2.12.0",
"@types/node": "^20.2.5",
"esbuild": "^0.19.8",
"shx": "^0.3.4",
"typescript": "^5.3.2",
"vite": "^4.5.0",
"vite-plugin-static-copy": "^0.17.0"
}
}
70 changes: 70 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ packages:
- 'examples/inputs-outputs/typescript'
- 'examples/mean-squares-versor-registration'
- 'examples/mean-squares-versor-registration/typescript'
- '!packages/core/typescript/itk-wasm/test/pipelines/typescript'
- '!packages/core/typescript/create-itk-wasm/test/**'
- '!**/src'
- '!**/dist'
Expand Down

0 comments on commit ba45c77

Please sign in to comment.