mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
chore(*): replace 'pnpm <command>' with 'pnpm run <command>' (#2991)
This commit is contained in:
parent
65402b01d6
commit
49ee6313db
2
.github/workflows/cr.yml
vendored
2
.github/workflows/cr.yml
vendored
@ -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
.github/workflows/lint-and-type.yml
vendored
6
.github/workflows/lint-and-type.yml
vendored
@ -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
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -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 }}
|
||||
|
||||
4
.github/workflows/test-multiple-builds.yml
vendored
4
.github/workflows/test-multiple-builds.yml
vendored
@ -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: |
|
||||
@ -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 }}
|
||||
|
||||
6
.github/workflows/test-multiple-versions.yml
vendored
6
.github/workflows/test-multiple-versions.yml
vendored
@ -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
|
||||
@ -44,4 +44,4 @@ jobs:
|
||||
- name: Test ${{ matrix.react }} ${{ matrix.devtools-skip }}
|
||||
run: |
|
||||
pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }}
|
||||
pnpm test:spec
|
||||
pnpm run test:spec
|
||||
|
||||
4
.github/workflows/test-old-typescript.yml
vendored
4
.github/workflows/test-old-typescript.yml
vendored
@ -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
|
||||
@ -52,4 +52,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
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
"build:vanilla:shallow": "rollup -c --config-vanilla_shallow",
|
||||
"build:react:shallow": "rollup -c --config-react_shallow",
|
||||
"build:traditional": "rollup -c --config-traditional",
|
||||
"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}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",
|
||||
"fix:lint": "eslint . --fix",
|
||||
"test": "pnpm run \"/^test:.*/\"",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user