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
(cherry picked from commit 5e2c5e0)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed Mar 25, 2024
1 parent 862c037 commit 38cb6eb
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 38cb6eb

Please sign in to comment.