diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 1be309a306de16..e082669d824633 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -9,7 +9,9 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "dev": "tsc -p . -w --incremental", + "dev": "rimraf dist && run-p dev-types dev-watch", + "dev-types": "tsc -p . -w --incremental --emitDeclarationOnly", + "dev-watch": "esbuild src/index.ts --watch --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --external:vue/compiler-sfc --external:vite --outfile=dist/index.js", "build": "rimraf dist && run-s build-bundle build-types", "build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --external:vue/compiler-sfc --external:vite --outfile=dist/index.js", "build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp",