Explorar o código

build: fix dts tests

Evan You %!s(int64=4) %!d(string=hai) anos
pai
achega
faf943ce3a
Modificáronse 4 ficheiros con 22 adicións e 24 borrados
  1. 5 1
      package.json
  2. 1 2
      packages/sfc-playground/package.json
  3. 9 3
      pnpm-lock.yaml
  4. 7 18
      test-dts/tsconfig.build.json

+ 5 - 1
package.json

@@ -45,6 +45,9 @@
   },
   "devDependencies": {
     "vue": "workspace:*",
+    "@vue/runtime-dom": "workspace:*",
+    "@vue/runtime-core": "workspace:*",
+    "@vue/reactivity": "workspace:*",
     "@babel/types": "^7.12.0",
     "@microsoft/api-extractor": "^7.15.1",
     "@rollup/plugin-commonjs": "^18.0.0",
@@ -83,6 +86,7 @@
     "yorkie": "^2.0.0",
     "lodash": "^4.17.15",
     "marked": "^0.7.0",
-    "todomvc-app-css": "^2.3.0"
+    "todomvc-app-css": "^2.3.0",
+    "vite": "^2.6.0"
   }
 }

+ 1 - 2
packages/sfc-playground/package.json

@@ -8,8 +8,7 @@
     "serve": "vite preview"
   },
   "devDependencies": {
-    "@vitejs/plugin-vue": "^1.8.1",
-    "vite": "^2.5.10"
+    "@vitejs/plugin-vue": "^1.9.3"
   },
   "dependencies": {
     "vue": "workspace:*",

+ 9 - 3
pnpm-lock.yaml

@@ -15,6 +15,9 @@ importers:
       '@types/node': ^16.4.7
       '@types/puppeteer': ^5.0.0
       '@typescript-eslint/parser': ^4.1.1
+      '@vue/reactivity': workspace:*
+      '@vue/runtime-core': workspace:*
+      '@vue/runtime-dom': workspace:*
       brotli: ^1.3.2
       chalk: ^4.1.0
       conventional-changelog-cli: ^2.0.31
@@ -42,6 +45,7 @@ importers:
       todomvc-app-css: ^2.3.0
       ts-jest: ^27.0.5
       typescript: ^4.2.2
+      vite: ^2.6.0
       vue: workspace:*
       yorkie: ^2.0.0
     devDependencies:
@@ -56,6 +60,9 @@ importers:
       '@types/node': 16.10.3
       '@types/puppeteer': 5.4.4
       '@typescript-eslint/parser': 4.33.0_eslint@7.32.0+typescript@4.4.3
+      '@vue/reactivity': link:packages/reactivity
+      '@vue/runtime-core': link:packages/runtime-core
+      '@vue/runtime-dom': link:packages/runtime-dom
       brotli: 1.3.2
       chalk: 4.1.2
       conventional-changelog-cli: 2.1.1
@@ -83,6 +90,7 @@ importers:
       todomvc-app-css: 2.4.1
       ts-jest: 27.0.5_c167855b7a039eaaa2a6b38847c1969c
       typescript: 4.4.3
+      vite: 2.6.5
       vue: link:packages/vue
       yorkie: 2.0.0
 
@@ -223,11 +231,10 @@ importers:
 
   packages/sfc-playground:
     specifiers:
-      '@vitejs/plugin-vue': ^1.8.1
+      '@vitejs/plugin-vue': ^1.9.3
       '@vue/repl': ^0.4.3
       file-saver: ^2.0.5
       jszip: ^3.6.0
-      vite: ^2.5.10
       vue: workspace:*
     dependencies:
       '@vue/repl': 0.4.3
@@ -236,7 +243,6 @@ importers:
       vue: link:../vue
     devDependencies:
       '@vitejs/plugin-vue': 1.9.3_vite@2.6.5
-      vite: 2.6.5
 
   packages/shared:
     specifiers: {}

+ 7 - 18
test-dts/tsconfig.build.json

@@ -1,22 +1,11 @@
 {
-  "extends": "./tsconfig.json",
   "compilerOptions": {
-    "noEmit": false,
-    "paths": {
-      "@vue/*": ["../packages/*/dist"],
-      "vue": ["../packages/vue/dist"]
-    }
+    "noEmit": true,
+    "jsx": "preserve",
+    "module": "esnext",
+    "strict": true,
+    "moduleResolution": "node",
+    "lib": ["esnext", "dom"]
   },
-  "exclude": [
-    "../packages/*/__tests__",
-    "../packages/*/src",
-    "../packages/template-explorer"
-  ],
-  "include": [
-    "../packages/global.d.ts",
-    "../packages/*/dist",
-    "../packages/runtime-dom/types/jsx.d.ts",
-    "../packages/*/__tests__",
-    "../test-dts"
-  ]
+  "include": ["./*"]
 }