Fix bug with ssh2 executable being in the wrong place

feature/search
Kelvin Schoofs 6 years ago
parent 647717d44a
commit 8d78ba154a

1
.gitignore vendored

@ -1,4 +1,5 @@
dist dist
util
node_modules node_modules
*.vsix *.vsix
stats.json stats.json

@ -2,7 +2,7 @@
** **
!dist/*.js !dist/*.js
!dist/util !util
!resources/config !resources/config
!resources/Logo.png !resources/Logo.png
!media !media

@ -28,7 +28,7 @@ class CopyPuttyExecutable {
*/ */
apply(compiler) { apply(compiler) {
const path = resolve('./node_modules/ssh2/util/pagent.exe'); 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) => { compiler.hooks.beforeRun.tapPromise('CopyPuttyExecutable-BeforeRun', () => new Promise((resolve, reject) => {
fs.exists(path, exists => exists ? resolve() : reject(`Couldn't find executable at: ${path}`)); fs.exists(path, exists => exists ? resolve() : reject(`Couldn't find executable at: ${path}`));
})); }));

Loading…
Cancel
Save