Browse Source

build fix

Eugene Pankov 4 years ago
parent
commit
797265abb1
4 changed files with 2 additions and 10 deletions
  1. 1 1
      app/lib/pty.ts
  2. 1 1
      app/webpack.main.config.js
  3. 0 7
      app/yarn.lock
  4. 0 1
      webpack.plugin.config.js

+ 1 - 1
app/lib/pty.ts

@@ -1,4 +1,4 @@
-import * as nodePTY from '@terminus-term/node-pty'
+import * as nodePTY from 'node-pty'
 import { v4 as uuidv4 } from 'uuid'
 import { ipcMain } from 'electron'
 import { Application } from './app'

+ 1 - 1
app/webpack.main.config.js

@@ -41,12 +41,12 @@ module.exports = {
     glasstron: 'commonjs glasstron',
     mz: 'commonjs mz',
     npm: 'commonjs npm',
+    'node-pty': 'commonjs node-pty',
     path: 'commonjs path',
     util: 'commonjs util',
     'source-map-support': 'commonjs source-map-support',
     'windows-swca': 'commonjs windows-swca',
     'windows-blurbehind': 'commonjs windows-blurbehind',
-    '@terminus-term/node-pty': 'commonjs @terminus-term/node-pty',
   },
   plugins: [
     new webpack.optimize.ModuleConcatenationPlugin(),

+ 0 - 7
app/yarn.lock

@@ -143,13 +143,6 @@
   dependencies:
     debug "^4.3.1"
 
-"@terminus-term/[email protected]":
-  version "0.10.0-terminus.3"
-  resolved "https://registry.yarnpkg.com/@terminus-term/node-pty/-/node-pty-0.10.0-terminus.3.tgz#9dbd64d52afda5079e66265a89d313fe42affab7"
-  integrity sha512-HvIOts22dnoBXhRfLiK9DyPasuixYVgEUvgqZmOr0B0Ki9tF8e074oYPUtzLRll6Y553QiUzTWhriCS99MChNQ==
-  dependencies:
-    nan "^2.14.0"
-
 "@types/[email protected]":
   version "2.7.3"
   resolved "https://registry.yarnpkg.com/@types/mz/-/mz-2.7.3.tgz#e42a21e73f5f9340fe4a176981fafb1eb8cc6c12"

+ 0 - 1
webpack.plugin.config.js

@@ -77,7 +77,6 @@ module.exports = options => {
             'native-process-working-directory',
             'net',
             'ngx-toastr',
-            'node-pty',
             'os',
             'path',
             'readline',