From c327d0e777f36e974fe50e3a6b312bd4969f383d Mon Sep 17 00:00:00 2001 From: igorklopov Date: Thu, 1 Sep 2016 11:38:02 +0300 Subject: [PATCH] expand ~/.pkg-cache to show user full path --- .npmignore | 1 - lib/index.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index d9861dc..41c9a0d 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,4 @@ /lib -/patches/*.patch /test .eslintignore .gitignore diff --git a/lib/index.js b/lib/index.js index 127fd3d..2952429 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,6 +7,7 @@ import build from './build.js'; import { download } from './cloud.js'; import { exists } from 'fs-promise'; import patchesJson from '../patches/patches.json'; +import path from 'path'; import semver from 'semver'; import { version } from '../package.json'; @@ -41,7 +42,7 @@ export async function need ({ if (await exists(built)) return built; } if (!forceBuild) { - log.info('Downloading base binaries to \'~/.pkg-cache\'...'); + log.info('Downloading base binaries to:', path.dirname(downloaded)); const remote = remotePlace({ arch, nodeVersion, platform, version }); if (await download(remote, downloaded)) return downloaded; downloadFailed = true;