Skip to content

Commit

Permalink
feat(nano-lib): enhance console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Dec 23, 2023
1 parent e95b497 commit 92f9b2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nano-build/nano-build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (existsSync(packageJsonPath) === false) {
const packageJson = require(packageJsonPath);

console.log('🚀 nano-build');
console.log('📦 ' + packageJson.name);
console.log('📦 %s\n', packageJson.name);

const watchMode = process.argv.includes('--watch');

Expand Down Expand Up @@ -73,7 +73,7 @@ const presetRecord = {

function getOptions() {
let presetName = process.argv.find((arg) => arg.startsWith('--preset='))?.split('=')[1] ?? 'default';
console.log('preset: %s', presetName);
console.log('🔧 preset: %s', presetName);
const presetOptions = presetRecord[presetName];
if (!presetOptions) {
console.error('❌ preset not found', {preset: presetName});
Expand All @@ -94,7 +94,7 @@ function getOptions() {
}
});

console.log('options: %o', options);
console.log('🛠️ options: %o\n', options);

if (typeof options.mangleProps === 'string') {
options.mangleProps = new RegExp(options.mangleProps);
Expand Down Expand Up @@ -122,7 +122,7 @@ async function nanoBuild(options) {
}

// else
console.log('🛠️ Building...');
console.log('🛠️ Building...');
await build(options);
if (alsoCjs) {
await build({
Expand Down

0 comments on commit 92f9b2a

Please sign in to comment.