Skip to content

Commit ed70b9a

Browse files
feat: Print directory where the hook has already been installed
Currently when the plugin has already been installed users receive message: `Hook already installed: <name>` But the location where the hook had already been installed is not printed anywhere. Print it in order to determine easily in case the plugin had not detected corretly the location where the hook should have been installed.
1 parent 15d830f commit ed70b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function findProjectDir(pkgdir) {
4040
if (path.basename(candidateDir) === 'node_modules') {
4141
continue;
4242
}
43-
43+
4444
if (_isNativeScriptAppRoot(candidateDir)) {
4545
return candidateDir;
4646
}
@@ -94,7 +94,7 @@ function postinstall(pkgdir) {
9494
mkdirp.sync(hookDir);
9595
}
9696
if (hookInstalled(hookDir, pkg, hook)) {
97-
console.log('Hook already installed: ' + pkg.name);
97+
console.log(`Hook already installed: ${pkg.name} at location: ${hookDir}`);
9898
return;
9999
}
100100
var hookFileName = generateHookName(pkg, hook);

0 commit comments

Comments
 (0)