Skip to content

Commit b610887

Browse files
committed
feat: change warning message about incorrect wd
1 parent 399cd16 commit b610887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function lifecycle (pkg, stage, wd, opts) {
7777

7878
if ((wd.indexOf(opts.dir) !== 0 || _incorrectWorkingDirectory(wd, pkg)) &&
7979
!opts.unsafePerm && pkg.scripts[stage]) {
80-
opts.log.warn('lifecycle', logid(pkg, stage), 'cannot run in wd', pkg._id, pkg.scripts[stage], `(wd=${wd})`)
80+
opts.log.warn(`"${stage}" script of "${pkg._id}" inside "${wd}" is skipped as the working directory seems suspicious. To run this lifecycle script anyway, use "--unsafe-perm".`)
8181
return resolve()
8282
}
8383

0 commit comments

Comments
 (0)