Browse Source

fixed windows-process-tree dep

Eugene Pankov 6 years ago
parent
commit
31b69f676c
2 changed files with 4 additions and 1 deletions
  1. 3 0
      terminus-ssh/package.json
  2. 1 1
      terminus-ssh/src/services/ssh.service.ts

+ 3 - 0
terminus-ssh/package.json

@@ -30,5 +30,8 @@
     "terminus-core": "*",
     "terminus-settings": "*",
     "terminus-terminal": "*"
+  },
+  "optionalDependencies": {
+    "@terminus-term/windows-process-tree": "^0.2.4"
   }
 }

+ 1 - 1
terminus-ssh/src/services/ssh.service.ts

@@ -12,7 +12,7 @@ import { PasswordStorageService } from './passwordStorage.service'
 import { SSH2Stream } from 'ssh2-streams'
 
 try {
-    var windowsProcessTreeNative = require('windows-process-tree/build/Release/windows_process_tree.node') // eslint-disable-line @typescript-eslint/no-var-requires
+    var windowsProcessTreeNative = require('@terminus-term/windows-process-tree/build/Release/windows_process_tree.node') // eslint-disable-line @typescript-eslint/no-var-requires
 } catch { }
 
 @Injectable({ providedIn: 'root' })