This commit is contained in:
Eugene Pankov
2017-04-30 00:25:01 +02:00
parent 8be70110fe
commit 46b0b0e172
13 changed files with 41 additions and 38 deletions

View File

@@ -12,6 +12,12 @@ function normalizePath (path: string): string {
};
(<any>global).require.main.paths.map(x => nodeModule.globalPaths.push(normalizePath(x)))
nodeModule.globalPaths.unshift(
path.join(
path.dirname(require('electron').remote.app.getPath('exe')),
'resources/builtin-plugins/node_modules',
)
)
if (process.env.TERMINUS_PLUGINS) {
process.env.TERMINUS_PLUGINS.split(':').map(x => nodeModule.globalPaths.unshift(normalizePath(x)))