From ed70b9a1ed08bdbfb9c2d949c17edc7f7cecba7f Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Tue, 17 Apr 2018 12:36:05 +0300 Subject: [PATCH 1/2] feat: Print directory where the hook has already been installed Currently when the plugin has already been installed users receive message: `Hook already installed: ` 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. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8878ee1..8ad9aa7 100644 --- a/index.js +++ b/index.js @@ -40,7 +40,7 @@ function findProjectDir(pkgdir) { if (path.basename(candidateDir) === 'node_modules') { continue; } - + if (_isNativeScriptAppRoot(candidateDir)) { return candidateDir; } @@ -94,7 +94,7 @@ function postinstall(pkgdir) { mkdirp.sync(hookDir); } if (hookInstalled(hookDir, pkg, hook)) { - console.log('Hook already installed: ' + pkg.name); + console.log(`Hook already installed: ${pkg.name} at location: ${hookDir}`); return; } var hookFileName = generateHookName(pkg, hook); From ff4b32872fb521d2d4464dda461d40d4ca5efff2 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Tue, 17 Apr 2018 12:38:59 +0300 Subject: [PATCH 2/2] chore: Set version to 0.2.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1bcbf68..45b2781 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-hook", - "version": "0.2.3", + "version": "0.2.4", "description": "Helper module for installing hooks into NativeScript projects", "main": "index.js", "scripts": {