Skip to content

Commit b47292e

Browse files
authored
fix: small logging tweaks (#245)
1 parent 316e0ec commit b47292e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ async function write (opts, pkg, { log } = {}) {
441441
await fs.mkdirp(path.dirname(pkgPath));
442442

443443
// Write package json
444-
log.info(`Writing package.json\n${pkgPath}`);
444+
log.info(`Writing ${pkgPath}`);
445445
await pkg.save();
446446

447447
// If we dont have workspaceRootPkg then we are
@@ -460,7 +460,7 @@ async function write (opts, pkg, { log } = {}) {
460460
if (Array.from(ws.values()).includes(opts.cwd)) {
461461
log.debug('Workspaces globs already match the new package path, no update necessary');
462462
} else {
463-
log.info('Adding new package to workspace root package.json');
463+
log.info(`Adding ${workspaceRelativePath} to workspaces in package.json`);
464464
const rootPkg = await load(opts.workspaceRoot);
465465
rootPkg.update({
466466
workspaces: [...(opts.workspaceRootPkg.workspaces || []), workspaceRelativePath]
@@ -495,7 +495,7 @@ async function write (opts, pkg, { log } = {}) {
495495
workspace: workspaceRelativePath
496496
});
497497
if (out.stderr) {
498-
log.error(out.stderr);
498+
log.warning(out.stderr);
499499
}
500500
log.debug(out.stdout);
501501
}

0 commit comments

Comments
 (0)