From e18df527922719fae67d0a6dde0d451b343a5701 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Thu, 13 Aug 2026 11:05:37 +0200 Subject: [PATCH] Add tsconfig.json to fix vite-plugin-dts crash during config load @nextcloud/vite-config's index.js barrel statically re-exports createLibConfig from libConfig.js, which imports vite-plugin-dts at module scope. That import chain runs even though we only use createAppConfig, and vite-plugin-dts crashes while resolving a tsconfig that did not exist in this (plain JS/Vue) project. --- tsconfig.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e2d2f5c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["ES2022", "DOM"], + "allowJs": true, + "checkJs": false, + "skipLibCheck": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "strict": false + }, + "include": ["src/**/*.js", "src/**/*.vue", "vite.config.js"] +}