Skip to content

Commit

Permalink
refactor: always log steps
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jul 2, 2021
1 parent 9375549 commit 90ab3b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ logVerboseInfo(
const packageJsonPath = join(packageCwd, 'package.json');
const packageJsonExistsInCwd = await fileExistsAsync(packageJsonPath);

logVerboseInfo(['Checking if package.json exists in the current working directory'], options.verbose);
console.log(cyan('Checking if package.json exists in the current working directory'));

if (!packageJsonExistsInCwd) {
logVerboseError({
Expand All @@ -64,29 +64,29 @@ if (!packageJsonExistsInCwd) {
| Purges the dist directory |
|---------------------------|
*/
logVerboseInfo(['Cleaning the configured "dist" path'], options.verbose);
console.log(cyan('Cleaning the configured "dist" path'));
await cleanDist(options);

/**
|---------------------------------------------------------------------------------|
| Calls the configured {@link Options.buildScript} to compile the TypeScript code |
|---------------------------------------------------------------------------------|
*/
logVerboseInfo(['Compiling your TypeScript source code'], options.verbose);
console.log(cyan('Compiling your TypeScript source code'));
await buildCode(options);

/**
|-------------------------------------|
| Bundle TypeScript types with Rollup |
|-------------------------------------|
*/
logVerboseInfo(['Bundling TypeScript types'], options.verbose);
console.log(cyan('Bundling TypeScript types'));
await bundleTypes(options);

/**
|-------------------------------------------------|
| Cleans extraneous types from the dist directory |
|-------------------------------------------------|
*/
logVerboseInfo(['Cleaning extraneous types from the "dist" path'], options.verbose);
console.log(cyan('Cleaning extraneous types from the "dist" path'));
await cleanExtraneousTypes(options);

0 comments on commit 90ab3b8

Please sign in to comment.