Skip to content

Commit

Permalink
success message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Sep 13, 2023
1 parent fa4a016 commit bbabf85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sourcemaps/tools/tsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as Sentry from '@sentry/node';

// @ts-ignore - clack is ESM and TS complains about that. It works though
import * as clack from '@clack/prompts';
import chalk from 'chalk';

import {
askForToolConfigPath,
Expand Down Expand Up @@ -127,6 +128,13 @@ export async function enableSourcemaps(tsConfigPath: string): Promise<boolean> {
const code = printJsonC(ast);

await fs.promises.writeFile(tsConfigPath, code);

clack.log.success(
`Enabled source maps generation in ${chalk.cyan(
path.basename(tsConfigPath || 'tsconfig.json'),
)}.`,
);

return true;
} catch (e) {
debug(e);
Expand Down

0 comments on commit bbabf85

Please sign in to comment.