mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-04 02:19:55 +00:00
auto-create plugins folder (fixes #738)
This commit is contained in:
parent
60e095fbc7
commit
d42fe4f107
@ -28,6 +28,10 @@ const userPluginsPath = path.join(
|
|||||||
'plugins',
|
'plugins',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!fs.existsSync(userPluginsPath)) {
|
||||||
|
fs.mkdir(userPluginsPath)
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(window, { builtinPluginsPath, userPluginsPath })
|
Object.assign(window, { builtinPluginsPath, userPluginsPath })
|
||||||
nodeModule.globalPaths.unshift(builtinPluginsPath)
|
nodeModule.globalPaths.unshift(builtinPluginsPath)
|
||||||
nodeModule.globalPaths.unshift(path.join(userPluginsPath, 'node_modules'))
|
nodeModule.globalPaths.unshift(path.join(userPluginsPath, 'node_modules'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user