diff --git a/packages/core/src/auto-imports.d.ts b/packages/core/src/auto-imports.d.ts index 65b43fe1..28aa4cbc 100644 --- a/packages/core/src/auto-imports.d.ts +++ b/packages/core/src/auto-imports.d.ts @@ -1,4 +1,7 @@ -// Generated by 'unplugin-auto-import' +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-auto-import export {} declare global { const $$: typeof import('vue/macros')['$$'] @@ -165,7 +168,6 @@ declare global { const rendererPointToPoint: typeof import('./utils/graph')['rendererPointToPoint'] const resetRecentHandle: typeof import('./utils/handle')['resetRecentHandle'] const resolveComponent: typeof import('vue')['resolveComponent'] - const resolveDirective: typeof import('vue')['resolveDirective'] const resolveRef: typeof import('@vueuse/core')['resolveRef'] const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const shallowReactive: typeof import('vue')['shallowReactive'] @@ -377,3 +379,8 @@ declare global { const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter'] const whenever: typeof import('@vueuse/core')['whenever'] } +// for type re-export +declare global { + // @ts-ignore + export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue' +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f80242fd..c0bbea17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -384,6 +384,7 @@ importers: tests: specifiers: '@tooling/eslint-config': workspace:* + '@tooling/tsconfig': workspace:* '@vitejs/plugin-vue': ^4.0.0 '@vue-flow/background': workspace:* '@vue-flow/controls': workspace:* @@ -391,16 +392,19 @@ importers: '@vue-flow/minimap': workspace:* cypress: ^12.3.0 eslint-plugin-chai-friendly: ^0.7.2 + vite: ^4.1.4 dependencies: - '@tooling/eslint-config': link:../tooling/eslint-config '@vue-flow/background': link:../packages/background '@vue-flow/controls': link:../packages/controls '@vue-flow/core': link:../packages/core '@vue-flow/minimap': link:../packages/minimap devDependencies: + '@tooling/eslint-config': link:../tooling/eslint-config + '@tooling/tsconfig': link:../tooling/tsconfig '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47 cypress: 12.6.0 eslint-plugin-chai-friendly: 0.7.2_eslint@8.34.0 + vite: 4.1.4 tooling/eslint-config: specifiers: diff --git a/tests/package.json b/tests/package.json index c52038c8..6a9d6a16 100644 --- a/tests/package.json +++ b/tests/package.json @@ -10,12 +10,14 @@ "@vue-flow/background": "workspace:*", "@vue-flow/controls": "workspace:*", "@vue-flow/core": "workspace:*", - "@tooling/eslint-config": "workspace:*", "@vue-flow/minimap": "workspace:*" }, "devDependencies": { + "@tooling/eslint-config": "workspace:*", + "@tooling/tsconfig": "workspace:*", + "@vitejs/plugin-vue": "^4.0.0", "cypress": "^12.3.0", - "eslint-plugin-chai-friendly": "^0.7.2", - "@vitejs/plugin-vue": "^4.0.0" + "vite": "^4.1.4", + "eslint-plugin-chai-friendly": "^0.7.2" } } diff --git a/tests/tsconfig.json b/tests/tsconfig.json index 96cce75c..108f5eee 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -1,25 +1,13 @@ { + "extends": "@tooling/tsconfig/base", "compilerOptions": { "baseUrl": ".", - "module": "ESNext", - "target": "es2017", - "lib": [ - "DOM", - "ESNext" - ], "noEmit": true, "declaration": false, - "strict": true, - "esModuleInterop": true, - "incremental": false, - "skipLibCheck": true, - "moduleResolution": "node", - "resolveJsonModule": true, - "noUnusedLocals": false, - "strictNullChecks": true, - "forceConsistentCasingInFileNames": true, - "types": [ - "vite/client" - ], }, + "references": [ + { + "path": "./tsconfig.node.json" + } + ] } diff --git a/tests/tsconfig.node.json b/tests/tsconfig.node.json new file mode 100644 index 00000000..6dacac71 --- /dev/null +++ b/tests/tsconfig.node.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "composite": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"], + "files": ["package.json"] +}