Skip to content

Commit

Permalink
chore(*): replace 'pnpm <command>' with 'pnpm run <command>' (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukvvon authored Feb 4, 2025
1 parent b6118e4 commit 9fc7de3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm run build
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'
6 changes: 3 additions & 3 deletions .github/workflows/lint-and-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm test:format
- run: pnpm test:types
- run: pnpm test:lint
- run: pnpm run test:format
- run: pnpm run test:types
- run: pnpm run test:lint
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-multiple-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm run build
- name: Patch for DEV-ONLY
if: ${{ matrix.env == 'development' }}
run: |
Expand All @@ -46,6 +46,6 @@ jobs:
NODE_ENV: ${{ matrix.env }}
- name: Test ${{ matrix.build }} ${{ matrix.env }}
run: |
pnpm test:spec
pnpm run test:spec
env:
NODE_ENV: ${{ matrix.env }}
8 changes: 4 additions & 4 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build # we don't have any other workflows to test build
- run: pnpm test:spec
- run: pnpm run build # we don't have any other workflows to test build
- run: pnpm run test:spec

test_matrix:
runs-on: ubuntu-latest
Expand All @@ -41,7 +41,7 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build # for macro test
- run: pnpm run build # for macro test
- name: Install legacy testing-library
if: ${{ startsWith(matrix.react, '16.') || startsWith(matrix.react, '17.') }}
run: pnpm add -D @testing-library/[email protected]
Expand All @@ -54,4 +54,4 @@ jobs:
- name: Test ${{ matrix.react }}
run: |
pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }}
pnpm test:spec
pnpm run test:spec
4 changes: 2 additions & 2 deletions .github/workflows/test-old-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm run build
- name: Patch for all TS
run: |
sed -i~ 's/"isolatedDeclarations": true,//' tsconfig.json
Expand All @@ -51,4 +51,4 @@ jobs:
- name: Install old TypeScript
run: pnpm add -D typescript@${{ matrix.typescript }}
- name: Test ${{ matrix.typescript }}
run: pnpm test:types
run: pnpm run test:types
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"build:vanilla_utils": "rollup -c --config-vanilla_utils",
"build:react": "rollup -c --config-react",
"build:react_utils": "rollup -c --config-react_utils",
"postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-old-ts && pnpm patch-esm-ts",
"postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",
"fix:format": "prettier \"*.{js,json,md}\" \"{src,tests,docs}/**/*.{ts,tsx,md,mdx}\" --write",
"fix:lint": "eslint . --fix",
"test": "pnpm run \"/^test:.*/\"",
Expand Down

0 comments on commit 9fc7de3

Please sign in to comment.