Skip to content

Commit 9fc7de3

Browse files
authored
chore(*): replace 'pnpm <command>' with 'pnpm run <command>' (#1047)
1 parent b6118e4 commit 9fc7de3

7 files changed

+14
-14
lines changed

.github/workflows/cr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
node-version: 'lts/*'
1414
cache: 'pnpm'
1515
- run: pnpm install
16-
- run: pnpm build
16+
- run: pnpm run build
1717
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'

.github/workflows/lint-and-type.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
node-version: 'lts/*'
1818
cache: 'pnpm'
1919
- run: pnpm install
20-
- run: pnpm test:format
21-
- run: pnpm test:types
22-
- run: pnpm test:lint
20+
- run: pnpm run test:format
21+
- run: pnpm run test:types
22+
- run: pnpm run test:lint

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
registry-url: 'https://registry.npmjs.org'
1717
cache: 'pnpm'
1818
- run: pnpm install
19-
- run: pnpm build
19+
- run: pnpm run build
2020
- run: npm publish
2121
env:
2222
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test-multiple-builds.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
node-version: 'lts/*'
2323
cache: 'pnpm'
2424
- run: pnpm install
25-
- run: pnpm build
25+
- run: pnpm run build
2626
- name: Patch for DEV-ONLY
2727
if: ${{ matrix.env == 'development' }}
2828
run: |
@@ -46,6 +46,6 @@ jobs:
4646
NODE_ENV: ${{ matrix.env }}
4747
- name: Test ${{ matrix.build }} ${{ matrix.env }}
4848
run: |
49-
pnpm test:spec
49+
pnpm run test:spec
5050
env:
5151
NODE_ENV: ${{ matrix.env }}

.github/workflows/test-multiple-versions.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
node-version: 'lts/*'
1818
cache: 'pnpm'
1919
- run: pnpm install
20-
- run: pnpm build # we don't have any other workflows to test build
21-
- run: pnpm test:spec
20+
- run: pnpm run build # we don't have any other workflows to test build
21+
- run: pnpm run test:spec
2222

2323
test_matrix:
2424
runs-on: ubuntu-latest
@@ -41,7 +41,7 @@ jobs:
4141
node-version: 'lts/*'
4242
cache: 'pnpm'
4343
- run: pnpm install
44-
- run: pnpm build # for macro test
44+
- run: pnpm run build # for macro test
4545
- name: Install legacy testing-library
4646
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }}
4747
run: pnpm add -D @testing-library/[email protected]
@@ -54,4 +54,4 @@ jobs:
5454
- name: Test ${{ matrix.react }}
5555
run: |
5656
pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }}
57-
pnpm test:spec
57+
pnpm run test:spec

.github/workflows/test-old-typescript.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
node-version: 'lts/*'
3333
cache: 'pnpm'
3434
- run: pnpm install
35-
- run: pnpm build
35+
- run: pnpm run build
3636
- name: Patch for all TS
3737
run: |
3838
sed -i~ 's/"isolatedDeclarations": true,//' tsconfig.json
@@ -51,4 +51,4 @@ jobs:
5151
- name: Install old TypeScript
5252
run: pnpm add -D typescript@${{ matrix.typescript }}
5353
- name: Test ${{ matrix.typescript }}
54-
run: pnpm test:types
54+
run: pnpm run test:types

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"build:vanilla_utils": "rollup -c --config-vanilla_utils",
6262
"build:react": "rollup -c --config-react",
6363
"build:react_utils": "rollup -c --config-react_utils",
64-
"postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-old-ts && pnpm patch-esm-ts",
64+
"postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",
6565
"fix:format": "prettier \"*.{js,json,md}\" \"{src,tests,docs}/**/*.{ts,tsx,md,mdx}\" --write",
6666
"fix:lint": "eslint . --fix",
6767
"test": "pnpm run \"/^test:.*/\"",

0 commit comments

Comments
 (0)