Skip to content

Commit fb16433

Browse files
branchseerclaude
andcommitted
fix: create vite.config.js instead of .ts to avoid TS-ESLint errors
Projects like vue-mini have strict TypeScript-ESLint configs that reject .ts files not included in tsconfig.json. Using .js avoids this issue. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fd0b12e commit fb16433

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ecosystem-ci/patch-project.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ if (existsSync(tsPath) || existsSync(jsPath)) {
6060
'utf-8',
6161
);
6262
} else {
63-
viteConfigPath = tsPath;
63+
// Use .js to avoid TypeScript-ESLint "not found by the project service" errors
64+
// in projects whose tsconfig.json doesn't include vite.config.ts.
65+
viteConfigPath = jsPath;
6466
await writeFile(
65-
tsPath,
67+
jsPath,
6668
`import { defineConfig } from 'vite-plus';\n\nexport default defineConfig({\n run: { cacheScripts: true },\n});\n`,
6769
'utf-8',
6870
);

0 commit comments

Comments
 (0)