mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-01 23:16:59 +00:00
.
This commit is contained in:
@@ -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)))
|
||||
|
Reference in New Issue
Block a user