Skip to content

Commit d444b4a

Browse files
Merge pull request #10 from NativeScript/vladimirov/print-dir
feat: Print directory where the hook has already been installed
2 parents 15d830f + ff4b328 commit d444b4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-hook",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "Helper module for installing hooks into NativeScript projects",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)