ソースを参照

build: fix size check

Evan You 3 年 前
コミット
40dab4d9dd
4 ファイル変更9 行追加3 行削除
  1. 1 1
      package.json
  2. 3 0
      packages/size-check/package.json
  3. 1 1
      packages/size-check/src/index.ts
  4. 4 1
      pnpm-lock.yaml

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "build-dts": "tsc -p tsconfig.build.json && rollup -c rollup.dts.config.mjs",
     "size": "run-s size-global size-baseline",
     "size-global": "node scripts/build.mjs vue runtime-dom -f global -p",
-    "size-baseline": "node scripts/build.mjs runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
+    "size-baseline": "node scripts/build.mjs vue -f esm-bundler-runtime && node scripts/build.mjs runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build && node brotli",
     "check": "tsc --incremental --noEmit",
     "lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
     "format": "prettier --write --cache --parser typescript \"**/*.[tj]s?(x)\"",

+ 3 - 0
packages/size-check/package.json

@@ -4,5 +4,8 @@
   "private": true,
   "scripts": {
     "build": "vite build"
+  },
+  "dependencies": {
+    "vue": "workspace:*"
   }
 }

+ 1 - 1
packages/size-check/src/index.ts

@@ -1,4 +1,4 @@
-import { h, createApp } from '@vue/runtime-dom'
+import { h, createApp } from 'vue'
 
 // The bare minimum code required for rendering something to the screen
 createApp({

+ 4 - 1
pnpm-lock.yaml

@@ -272,7 +272,10 @@ importers:
     specifiers: {}
 
   packages/size-check:
-    specifiers: {}
+    specifiers:
+      vue: workspace:*
+    dependencies:
+      vue: link:../vue
 
   packages/template-explorer:
     specifiers: