浏览代码

workflow: tweak sfc playground build script

Evan You 5 年之前
父节点
当前提交
950a950ae9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -19,7 +19,8 @@
     "serve": "serve",
     "open": "open http://localhost:5000/packages/template-explorer/local.html",
     "preinstall": "node ./scripts/checkYarn.js",
-    "build-sfc-playground": "node scripts/build.js vue -df esm-browser && node scripts/build.js compiler-sfc -f esm-browser && cd packages/sfc-playground && vite build"
+    "prebuild-sfc-playground": "node scripts/build.js compiler shared -af cjs && node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime && node scripts/build.js compiler-sfc -f esm-browser",
+    "build-sfc-playground": "cd packages/sfc-playground && vite build"
   },
   "types": "test-dts/index.d.ts",
   "tsd": {