Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): replace 'pnpm <command>' with 'pnpm run <command>' #2971

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/livecodes-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- uses: live-codes/preview-in-livecodes@v1
with:
install-command: pnpm install
build-command: pnpm build
build-command: pnpm run build
base-url: 'https://{{LC::REF}}.preview-in-livecodes-demo.pages.dev'
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: Use React 17 for production test
if: ${{ matrix.env == 'production' }}
run: |
Expand Down Expand Up @@ -65,6 +65,6 @@ jobs:
NODE_ENV: ${{ matrix.env }}
- name: Test ${{ matrix.build }} ${{ matrix.env }}
run: |
pnpm test-build:spec # test:spec
pnpm run test-build:spec # 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 Down Expand Up @@ -54,8 +54,8 @@ jobs:
sed -i~ 's/"jsx": "react-jsx"/"jsx": "react"/' tsconfig.json
sed -i~ 's/import\.meta\.env[?]\.MODE/"DEVELOPMENT".toLowerCase()/' src/*.ts src/*/*.ts src/*/*/*.ts
- name: Test Build # we need to build for babel tests
run: pnpm build
run: pnpm run build
- 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 @@ -41,7 +41,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 Down Expand Up @@ -99,4 +99,4 @@ jobs:
run: |
rm -r node_modules/@types/babel__core/node_modules
sed -i~ 's/">=4.2": {/">=4.1": {/' node_modules/rxjs/package.json
pnpm test:types
pnpm run test:types
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"build:vanilla:utils": "rollup -c --config-vanilla_utils",
"build:react": "rollup -c --config-react --client-only",
"build:react:utils": "rollup -c --config-react_utils --client-only",
"postbuild": "pnpm patch-d-ts && pnpm copy && pnpm patch-ts3.8 && pnpm patch-old-ts && pnpm patch-esm-ts && pnpm patch-readme",
"postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-ts3.8 && pnpm run patch-old-ts && pnpm run patch-esm-ts && pnpm run patch-readme",
"fix:format": "prettier \"*.{js,json,md}\" \"{src,tests,benchmarks,docs}/**/*.{ts,tsx,md,mdx}\" --write",
"fix:lint": "eslint . --fix",
"test": "pnpm run \"/^test:.*/\"",
Expand Down