From 8d78ba154a507c5f04d596af604e463b14420e41 Mon Sep 17 00:00:00 2001 From: Kelvin Schoofs Date: Mon, 11 Mar 2019 19:42:48 +0100 Subject: [PATCH] Fix bug with ssh2 executable being in the wrong place --- .gitignore | 1 + .vscodeignore | 2 +- webpack.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 63ca774..ee7e179 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ dist +util node_modules *.vsix stats.json \ No newline at end of file diff --git a/.vscodeignore b/.vscodeignore index d3b9ff8..e51ac6b 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -2,7 +2,7 @@ ** !dist/*.js -!dist/util +!util !resources/config !resources/Logo.png !media diff --git a/webpack.config.js b/webpack.config.js index bdc503f..c199902 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -28,7 +28,7 @@ class CopyPuttyExecutable { */ apply(compiler) { const path = resolve('./node_modules/ssh2/util/pagent.exe'); - const target = join(compiler.options.output.path, 'util/pagent.exe'); + const target = join(compiler.options.output.path, '../util/pagent.exe'); compiler.hooks.beforeRun.tapPromise('CopyPuttyExecutable-BeforeRun', () => new Promise((resolve, reject) => { fs.exists(path, exists => exists ? resolve() : reject(`Couldn't find executable at: ${path}`)); }));