- Updated workflow and pre-commit to work with PNPM, modified package.json to preinstall PNPM only.
This commit is contained in:
parent
e2b63e06d6
commit
35ad74f8a3
|
|
@ -28,10 +28,10 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- run: npm i -g yarn
|
||||
- run: npm i -g pnpm
|
||||
|
||||
- run: yarn install --ignore-engines
|
||||
- run: pnpm install
|
||||
|
||||
- run: yarn lint
|
||||
- run: pnpm lint
|
||||
|
||||
- run: yarn build
|
||||
- run: pnpm build
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn quick # prettify
|
||||
yarn lint-staged # eslint lint(also include prettify but prettify support more file extensions than eslint, so run prettify first)
|
||||
pnpm quick # prettify
|
||||
pnpm lint-staged # eslint lint(also include prettify but prettify support more file extensions than eslint, so run prettify first)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
"components"
|
||||
],
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"dev": "kill-port 3000 5173 && pnpm --filter \"./packages/**\" dev",
|
||||
"build": "pnpm --filter \"./packages/**\" build",
|
||||
"start": "kill-port 3000 && run-script-os",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"main": "dist/src/index",
|
||||
"types": "dist/src/index.d.ts",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build": "tsc && gulp",
|
||||
"dev": "tsc --watch"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
"commands": "./dist/commands"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"build": "tsc",
|
||||
"start": "run-script-os",
|
||||
"start:windows": "cd bin && run start",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
"yup": "^0.32.9"
|
||||
},
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"dev": "vite",
|
||||
"build": "vite build"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue