From: Evan You Date: Fri, 8 Oct 2021 18:12:13 +0000 (-0400) Subject: build: fix dts tests X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faf943ce3ac6b50fc17b745a78f62de2f377c9b7;p=thirdparty%2Fvuejs%2Fcore.git build: fix dts tests --- diff --git a/package.json b/package.json index 77a8d28321..6ef84114cf 100644 --- a/package.json +++ b/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" } } diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index 42c65a0f7a..d94d1c1d44 100644 --- a/packages/sfc-playground/package.json +++ b/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:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a3a521bf3..0c44ddee4c 100644 --- a/pnpm-lock.yaml +++ b/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: {} diff --git a/test-dts/tsconfig.build.json b/test-dts/tsconfig.build.json index b41ea17479..ea058b1d82 100644 --- a/test-dts/tsconfig.build.json +++ b/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": ["./*"] }