diff --git a/package.json b/package.json index 315767c..6f57f43 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "scripts": { "dev": "vite --open", "build": "vue-tsc --noEmit && vite build", - "build:dev": "vue-tsc --noEmit && vite build", - "build:pro": "vue-tsc --noEmit && vite build", "preview": "vite preview", "test": "vitest --mode development", "typecheck": "vue-tsc --noEmit", diff --git a/tsconfig.json b/tsconfig.json index 96f2801..ced954f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,8 @@ "types": [ "vite/client", "@alova/adapter-axios", - "unplugin-vue-macros/macros-global" + "unplugin-vue-macros/macros-global", + "unplugin-vue-router/client" ], "resolveJsonModule": true, "allowJs": true, @@ -23,8 +24,7 @@ "noUnusedLocals": true, "skipLibCheck": true }, - "references": [{ "path": "./tsconfig.node.json" }], - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "types/*.ts"], + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "types/*.ts", "types/*.d.ts"], "exclude": [ "dist", "node_modules" diff --git a/tsconfig.node.json b/tsconfig.node.json deleted file mode 100644 index 9d31e2a..0000000 --- a/tsconfig.node.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "ESNext", - "moduleResolution": "Node", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -}