提交 3bea3de0 编写于 作者: B Benjamin Pasero 提交者: GitHub

Merge pull request #8734 from Microsoft/ben/noasar

shut up asar
......@@ -30,6 +30,7 @@ var commit = util.getVersion(root);
var dependencies = Object.keys(shrinkwrap.dependencies);
var baseModules = Object.keys(process.binding('natives')).filter(function (n) { return !/^_|\//.test(n); });
var nodeModules = ['electron'].concat(dependencies).concat(baseModules);
nodeModules.push('original-fs'); // provided by electron to have original fs functionality without ASAR support
// Build
......
......@@ -1887,6 +1887,12 @@ declare module 'electron' {
export = electron;
}
declare module 'original-fs' {
import * as fs from 'fs';
export = fs;
}
// interface NodeRequireFunction {
// (moduleName: 'electron'): Electron.Electron;
// }
\ No newline at end of file
......@@ -6,7 +6,7 @@
'use strict';
import * as crypto from 'crypto';
import * as fs from 'fs';
import * as fs from 'original-fs';
import * as path from 'path';
import * as os from 'os';
import { app } from 'electron';
......
......@@ -6,7 +6,7 @@
'use strict';
import * as nls from 'vs/nls';
import * as fs from 'fs';
import * as fs from 'original-fs';
import { app, ipcMain as ipc } from 'electron';
import { assign } from 'vs/base/common/objects';
import { mkdirp } from 'vs/base/node/pfs';
......
......@@ -6,7 +6,7 @@
'use strict';
import * as path from 'path';
import * as fs from 'fs';
import * as fs from 'original-fs';
import { EventEmitter } from 'events';
import { IEnvironmentService } from 'vs/code/electron-main/env';
import { ServiceIdentifier, createDecorator } from 'vs/platform/instantiation/common/instantiation';
......
......@@ -5,7 +5,7 @@
'use strict';
import * as fs from 'fs';
import * as fs from 'original-fs';
import * as path from 'path';
import * as electron from 'electron';
import * as platform from 'vs/base/common/platform';
......
......@@ -6,7 +6,7 @@
'use strict';
import * as path from 'path';
import * as fs from 'fs';
import * as fs from 'original-fs';
import * as platform from 'vs/base/common/platform';
import * as nls from 'vs/nls';
import * as paths from 'vs/base/common/paths';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册