diff --git a/app/src/plugins.ts b/app/src/plugins.ts index 9c6eaa69..046d14ea 100644 --- a/app/src/plugins.ts +++ b/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 + function normalizePath (path: string): string { const cygwinPrefix = '/cygdrive/' if (path.startsWith(cygwinPrefix)) { diff --git a/app/tsconfig.json b/app/tsconfig.json index b719c576..b3e4adf8 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -18,11 +18,13 @@ "dom", "es2015", "es2015.iterable.ts", + "es2017", "es7" ] }, "compileOnSave": false, "exclude": [ + "dist", "node_modules", "*/node_modules", "terminus*", diff --git a/package.json b/package.json index bb2f9721..08cba367 100644 --- a/package.json +++ b/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", diff --git a/scripts/prepackage-plugins.js b/scripts/prepackage-plugins.js index ad290914..2ff0b688 100755 --- a/scripts/prepackage-plugins.js +++ b/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('..') })