Skip to content

Commit

Permalink
chore: improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jan 18, 2025
1 parent 9b09790 commit c9d85dc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/init/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,26 @@ export default async function run({
const isCI = process.env.CI === 'true';
if (isCI) {
bundler = 'rspack';
logger.info('Running in CI, using rspack. Use --bundler flag to override.');
logger.info(
'Running in CI, using rspack. Use --bundler flag to override.'
);
} else {
bundler = await select({
message: 'Which bundler would you like to use?',
choices: [
{
name: 'Rspack (recommended)',
value: 'rspack',
},
{
name: 'Webpack',
value: 'webpack',
}
],
default: 'rspack'
});
{
name: 'Rspack (recommended)',
value: 'rspack',
},
{
name: 'Webpack',
value: 'webpack',
},
],
default: 'rspack',
});
}
}
}

await addDependencies(bundler, cwd, packageManager, repackVersion);

Expand Down

0 comments on commit c9d85dc

Please sign in to comment.