This commit is contained in:
Eugene Pankov
2017-06-23 23:52:51 +02:00
parent 30afccdc57
commit 6f2008e5a2
4 changed files with 5 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@@ -18,7 +18,7 @@ vars.builtinPlugins.forEach(plugin => {
sh.exec(`npm install --only=prod`) sh.exec(`npm install --only=prod`)
log.info('rebuild', 'native') log.info('rebuild', 'native')
if (fs.existsSync('node_modules')) { 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('..') sh.cd('..')
}) })