Skip to content

Commit

Permalink
Merge pull request #26441 from drik98/bugfix/missing-support-for-mts-…
Browse files Browse the repository at this point in the history
…vite-config

Automigrations: Fix missing support for mts vite config
  • Loading branch information
valentinpalkovic authored Mar 22, 2024
2 parents ee7c4d9 + 807aaa4 commit 5e2c5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/cli/src/automigrate/fixes/vite-config-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const viteConfigFile = {

async check({ mainConfig, packageManager, mainConfigPath }) {
let isViteConfigFileFound = !!(await findUp(
['vite.config.js', 'vite.config.mjs', 'vite.config.cjs', 'vite.config.ts'],
['vite.config.js', 'vite.config.mjs', 'vite.config.cjs', 'vite.config.ts', 'vite.config.mts'],
{ cwd: mainConfigPath ? path.join(mainConfigPath, '..') : process.cwd() }
));

Expand Down

0 comments on commit 5e2c5e0

Please sign in to comment.