diff --git a/package.json b/package.json index f6143555..e124b472 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "pnpm": ">=8" }, "scripts": { - "dev": "turbo dev --filter='./packages/*' --filter=@vue-flow/examples-vite", + "dev": "pnpm build && turbo dev --filter='./packages/*' --filter=@vue-flow/examples-vite", "dev:docs": "turbo dev --filter=@vue-flow/docs", "changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"", "build:docs": "turbo build --filter docs", diff --git a/packages/background/package.json b/packages/background/package.json index 45798d43..e9cedcf7 100644 --- a/packages/background/package.json +++ b/packages/background/package.json @@ -46,9 +46,11 @@ ], "sideEffects": false, "scripts": { - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", + "build:watch": "vite build --watch", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" diff --git a/packages/controls/package.json b/packages/controls/package.json index e8f2c405..079f4351 100644 --- a/packages/controls/package.json +++ b/packages/controls/package.json @@ -49,9 +49,11 @@ "*.css" ], "scripts": { - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", + "build:watch": "vite build --watch", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" diff --git a/packages/core/package.json b/packages/core/package.json index f0f679ad..0f4f9483 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -51,9 +51,11 @@ ], "scripts": { "prepare": "ts-patch install -s", - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build && vite build -c vite.config.iife.ts", + "build:watch": "vite build --watch & vite build -c vite.config.iife.ts --watch", "types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && tsc -p ./tsconfig.build.json && shx rm -rf tmp && pnpm lint:dist && pnpm run patch", + "types:watch": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly --watch & tsc -p ./tsconfig.build.json --watch", "patch": "node patch/slots.js", "theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css", "lint": "eslint --ext .js,.ts,.vue ./", diff --git a/packages/minimap/package.json b/packages/minimap/package.json index 225096cc..f8e6e19d 100644 --- a/packages/minimap/package.json +++ b/packages/minimap/package.json @@ -47,9 +47,11 @@ ], "sideEffects": false, "scripts": { - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", + "build:watch": "vite build --watch", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" diff --git a/packages/node-resizer/package.json b/packages/node-resizer/package.json index 44f51830..2d4d723c 100644 --- a/packages/node-resizer/package.json +++ b/packages/node-resizer/package.json @@ -49,9 +49,11 @@ "*.css" ], "scripts": { - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", + "build:watch": "vite build --watch", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" diff --git a/packages/node-toolbar/package.json b/packages/node-toolbar/package.json index c87a25eb..0a203386 100644 --- a/packages/node-toolbar/package.json +++ b/packages/node-toolbar/package.json @@ -30,9 +30,11 @@ ], "sideEffects": false, "scripts": { - "dev": "vite build --watch", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", + "build:watch": "vite build --watch", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" diff --git a/packages/pathfinding-edge/package.json b/packages/pathfinding-edge/package.json index 9010947a..c6b7db60 100644 --- a/packages/pathfinding-edge/package.json +++ b/packages/pathfinding-edge/package.json @@ -45,14 +45,15 @@ ], "sideEffects": false, "scripts": { - "prepare": "ts-patch install -s", - "dev": "vite build --watch", - "example": "vite", + "dev": "pnpm types:watch & pnpm build:watch", "build": "vite build", - "types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && shx rm -rf tmp", - "postbuild": "shx rm -rf tmp", - "test": "exit 0;", - "lint": "eslint --ext .js,.ts,.vue ./" + "build:watch": "vite build --watch", + "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", + "types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch", + "examples": "vite", + "test": "exit 0", + "lint": "eslint --ext .js,.ts,.vue ./", + "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist" }, "peerDependencies": { "@vue-flow/core": "^1.12.2" @@ -68,8 +69,6 @@ "@types/pathfinding": "^0.0.6", "@vue-flow/core": "workspace:*", "@vitejs/plugin-vue": "^4.0.0", - "ts-patch": "^2.1.0", - "typescript-transform-paths": "^3.4.6", "vite": "^4.1.4", "vue": "^3.2.25", "vue-tsc": "^1.2.0"