mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 05:01:07 +03:00
- Updated workflow and pre-commit to work with PNPM, modified package.json to preinstall PNPM only.
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-2
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user