6d01952e66
* chore: replace standard with eslint-config-standard This adds support for --cache so linting JS only takes ~1 second and only lints things that changed It also allows us to add custom linting rules * chore: add eslint-plugin-mocha and enable the no-exclusive-tests rule This will block anyone from pushing / merging a `.only` test or describe
14 lines
410 B
JavaScript
14 lines
410 B
JavaScript
;(function () { // eslint-disable-line
|
|
return function (process, require, asarSource) {
|
|
const source = process.binding('natives')
|
|
|
|
// Expose fs module without asar support.
|
|
source['original-fs'] = source.fs
|
|
|
|
// Make asar.js accessible via "require".
|
|
source.ELECTRON_ASAR = asarSource
|
|
|
|
// Monkey-patch the fs module.
|
|
require('ELECTRON_ASAR').wrapFsWithAsar(require('fs'))
|
|
}
|
|
})()
|