Skip to content

Commit 2313370

Browse files
committed
build: replace pnpx with pnpm exec
1 parent 21d09b5 commit 2313370

File tree

15 files changed

+44
-44
lines changed

15 files changed

+44
-44
lines changed

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
pnpm i
2121
2222
- name: Lint commits
23-
run: pnpx commitlint --from=${{ github.event.pull_request.base.sha }}
23+
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}

docs/typescript/distribution/umd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Then, specify npm scripts to develop and debug the tests and run them in an auto
8888
```js
8989
"scripts": {
9090
"start": "http-server ./dist/"
91-
"cypress:open": "pnpx cypress open",
92-
"cypress:run": "pnpx cypress run",
91+
"cypress:open": "pnpm exec cypress open",
92+
"cypress:run": "pnpm exec cypress run",
9393
"test:debug": "start-server-and-test start http://localhost:8080 cypress:open",
9494
"test": "start-server-and-test start http://localhost:8080 cypress:run"
9595
},

docs/typescript/distribution/webpack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ Then, specify npm scripts to develop and debug the tests and run them in an auto
173173
```js
174174
"scripts": {
175175
"start": "webpack-dev-server --mode development --static ./dist/",
176-
"cypress:open": "pnpx cypress open",
177-
"cypress:run": "pnpx cypress run",
176+
"cypress:open": "pnpm exec cypress open",
177+
"cypress:run": "pnpm exec cypress run",
178178
"test:debug": "start-server-and-test start http-get://localhost:8080 cypress:open",
179179
"test": "start-server-and-test start http-get://localhost:8080 cypress:run"
180180
},

examples/hello-world/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"test": "npm run test:wasi && npm run test:node && npm run test:browser",
1212
"test:wasi": "npx itk-wasm run wasi-build/hello.wasi.wasm",
1313
"test:node": "node ./index.mjs",
14-
"cypress:open": "pnpx cypress open",
15-
"cypress:run": "pnpx cypress run",
14+
"cypress:open": "pnpm exec cypress open",
15+
"cypress:run": "pnpm exec cypress run",
1616
"start": "http-server -p 8083",
1717
"test:browser": "start-server-and-test start http://localhost:8083 cypress:run"
1818
},

examples/umd/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "This example demonstrates how to use the itk-wasm UMD module from an HTML script tag.",
55
"scripts": {
66
"start": "http-server ./dist/",
7-
"cypress:open": "pnpx cypress open",
8-
"cypress:run": "pnpx cypress run",
7+
"cypress:open": "pnpm exec cypress open",
8+
"cypress:run": "pnpm exec cypress run",
99
"test:debug": "start-server-and-test start http://localhost:8080 cypress:open",
1010
"test": "start-server-and-test start http://localhost:8080 cypress:run"
1111
},

examples/vite/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"start": "vite --port 8085",
88
"build": "vite build",
99
"start:production": "vite preview --port 8085",
10-
"cypress:open": "pnpx cypress open",
11-
"cypress:run": "pnpx cypress run",
12-
"cypress:runChrome": "pnpx cypress run --browser chrome",
13-
"cypress:runFirefox": "pnpx cypress run --browser firefox",
10+
"cypress:open": "pnpm exec cypress open",
11+
"cypress:run": "pnpm exec cypress run",
12+
"cypress:runChrome": "pnpm exec cypress run --browser chrome",
13+
"cypress:runFirefox": "pnpm exec cypress run --browser firefox",
1414
"test:debug": "start-server-and-test start http-get://localhost:8085 cypress:open",
1515
"test": "start-server-and-test start:production http-get://localhost:8085 cypress:run",
1616
"test:chrome": "start-server-and-test start:production http-get://localhost:8085 cypress:runChrome",

examples/webpack/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"build": "webpack --progress --color --mode production",
88
"start": "webpack-dev-server --port 8686 --mode development --static ./dist/",
99
"start:production": "webpack-dev-server --port 8686 --mode production --static ./dist/",
10-
"cypress:open": "pnpx cypress open",
11-
"cypress:run": "pnpx cypress run --config defaultCommandTimeout=8000",
12-
"cypress:install": "pnpx cypress install",
13-
"cypress:runChrome": "pnpx cypress run --config defaultCommandTimeout=8000 --browser chrome",
14-
"cypress:runFirefox": "pnpx cypress run --config defaultCommandTimeout=8000 --browser firefox",
15-
"cypress:runFirefox:ci": "npm run cypress:install && pnpx cypress run --config defaultCommandTimeout=8000 --browser firefox",
10+
"cypress:open": "pnpm exec cypress open",
11+
"cypress:run": "pnpm exec cypress run --config defaultCommandTimeout=8000",
12+
"cypress:install": "pnpm exec cypress install",
13+
"cypress:runChrome": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser chrome",
14+
"cypress:runFirefox": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
15+
"cypress:runFirefox:ci": "npm run cypress:install && pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
1616
"test:debug": "start-server-and-test start http-get://localhost:8686 cypress:open",
1717
"test": "start-server-and-test start:production http-get://localhost:8686 cypress:run",
1818
"test:chrome": "start-server-and-test start:production http-get://localhost:8686 cypress:runChrome",

packages/compare-images/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"test:browser:firefox": "start-server-and-test start http-get://localhost:5175 cypress:runFirefox",
2323
"test:browser:chrome": "start-server-and-test start http-get://localhost:5175 cypress:runChrome",
2424
"test:browser:debug": "start-server-and-test start http-get://localhost:5175 cypress:open",
25-
"cypress:open": "pnpx cypress open",
26-
"cypress:runChrome": "pnpx cypress run --browser chrome",
27-
"cypress:runFirefox": "pnpx cypress run --browser firefox",
25+
"cypress:open": "pnpm exec cypress open",
26+
"cypress:runChrome": "pnpm exec cypress run --browser chrome",
27+
"cypress:runFirefox": "pnpm exec cypress run --browser firefox",
2828
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
2929
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
3030
"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",

packages/compress-stringify/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"test:browser:chrome": "start-server-and-test start http-get://localhost:5176 cypress:runChrome",
2424
"test:browser:debug": "start-server-and-test start http-get://localhost:5176 cypress:open",
2525
"copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public/shoelace && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/",
26-
"cypress:open": "pnpx cypress open",
27-
"cypress:runChrome": "pnpx cypress run --browser chrome",
28-
"cypress:runFirefox": "pnpx cypress run --browser firefox",
26+
"cypress:open": "pnpm exec cypress open",
27+
"cypress:runChrome": "pnpm exec cypress run --browser chrome",
28+
"cypress:runFirefox": "pnpm exec cypress run --browser firefox",
2929
"build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo",
3030
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
3131
"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",

packages/core/typescript/itk-wasm/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
"build:workerBundle": "esbuild --bundle --format=esm --outfile=./dist/pipeline/web-workers/bundles/itk-wasm-pipeline.worker.js ./dist/pipeline/web-workers/itk-wasm-pipeline.worker.js",
2727
"build:workerBundleForTesting": "esbuild --bundle --format=esm --outfile=./test/pipelines/typescript/test/browser/demo-app/public/itk-wasm-pipeline.worker.js ./dist/pipeline/web-workers/itk-wasm-pipeline.worker.js && shx cp -r ./test/data/ ./test/pipelines/typescript/test/browser/demo-app/public/",
2828
"build:workerMinBundle": "esbuild --minify --bundle --format=esm --outfile=./dist/pipeline/web-workers/bundles/itk-wasm-pipeline.min.worker.js ./dist/pipeline/web-workers/itk-wasm-pipeline.worker.js",
29-
"cypress:open": "pnpx cypress open",
30-
"cypress:run": "pnpx cypress run --config defaultCommandTimeout=8000",
31-
"cypress:install": "pnpx cypress install",
32-
"cypress:runChrome": "pnpx cypress run --config defaultCommandTimeout=8000 --browser chrome",
33-
"cypress:runFirefox": "pnpx cypress run --config defaultCommandTimeout=8000 --browser firefox",
34-
"cypress:runFirefox:ci": "pnpm cypress:install && pnpx cypress run --config defaultCommandTimeout=8000 --browser firefox",
29+
"cypress:open": "pnpm exec cypress open",
30+
"cypress:run": "pnpm exec cypress run --config defaultCommandTimeout=8000",
31+
"cypress:install": "pnpm exec cypress install",
32+
"cypress:runChrome": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser chrome",
33+
"cypress:runFirefox": "pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
34+
"cypress:runFirefox:ci": "pnpm cypress:install && pnpm exec cypress run --config defaultCommandTimeout=8000 --browser firefox",
3535
"start": "pnpm build:workerBundleForTesting && cd test/pipelines/typescript && npm i && npm link ../../.. && npm run build && npm run start",
3636
"test:wasi": "pnpm test:buildTestPipelines:wasi && pnpm test:runTestPipelines && pnpm test:bindgenTestPipelines:python",
3737
"test": "pnpm test:lint && pnpm test:testPipelines && pnpm test:node && pnpm test:bindgenTestPipelines:python && pnpm test:browser:chrome && pnpm test:browser:firefox",

0 commit comments

Comments
 (0)