Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
feat(init): add hint to start lerna-dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
rudxde committed Mar 2, 2022
1 parent e86d494 commit 8d18a35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/init/src/main.ts
Expand Up @@ -8,13 +8,17 @@ export async function main(args: IInitArgs): Promise<void> {
// workaround for esm import with typescript
// issue: https://github.com/microsoft/TypeScript/issues/43329
const ora = await (eval('import("ora")') as Promise<typeof import('ora')>);
const chalk = (await (eval('import("chalk")') as Promise<typeof import('chalk')>)).default;

const spinner = ora.default('Installing lerna-dockerize').start();
try {
await installLernaDockerize(args);
await addTemplates(args);
await addConfig(args);
await addScripts(args);
spinner.succeed('lerna-dockerize was successfully installed!');
console.log(`\nnow try to run:`);
console.log(`\t${chalk.yellow('>')} ${chalk.underline.blue(`npm run lerna-dockerize`)}`);
} catch (err) {
if (!(err instanceof Error)) {
console.error(err);
Expand Down

0 comments on commit 8d18a35

Please sign in to comment.