Eugene Pankov 8 years ago
parent
commit
6f2008e5a2
4 changed files with 5 additions and 2 deletions
  1. 2 0
      app/src/plugins.ts
  2. 2 0
      app/tsconfig.json
  3. 0 1
      package.json
  4. 1 1
      scripts/prepackage-plugins.js

+ 2 - 0
app/src/plugins.ts

@@ -3,6 +3,8 @@ import * as path from 'path'
 const nodeModule = require('module')
 const nodeRequire = (global as any).require
 
+declare function delay (ms: number): Promise<void>
+
 function normalizePath (path: string): string {
     const cygwinPrefix = '/cygdrive/'
     if (path.startsWith(cygwinPrefix)) {

+ 2 - 0
app/tsconfig.json

@@ -18,11 +18,13 @@
            "dom",
            "es2015",
            "es2015.iterable.ts",
+           "es2017",
            "es7"
         ]
     },
     "compileOnSave": false,
     "exclude": [
+        "dist",
         "node_modules",
         "*/node_modules",
         "terminus*",

+ 0 - 1
package.json

@@ -1,7 +1,6 @@
 {
   "name": "term",
   "devDependencies": {
-    "@types/core-js": "0.9.35",
     "@types/electron": "1.4.34",
     "@types/fs-promise": "1.0.1",
     "@types/node": "7.0.5",

+ 1 - 1
scripts/prepackage-plugins.js

@@ -18,7 +18,7 @@ vars.builtinPlugins.forEach(plugin => {
   sh.exec(`npm install --only=prod`)
   log.info('rebuild', 'native')
   if (fs.existsSync('node_modules')) {
-    rebuild(path.resolve('.'), vars.electronVersion, process.arch, vars.nativeModules, true)
+    rebuild(path.resolve('.'), vars.electronVersion, process.arch, [], true)
   }
   sh.cd('..')
 })