diff --git a/app/src/plugins.ts b/app/src/plugins.ts index 35a074de..c3009d45 100644 --- a/app/src/plugins.ts +++ b/app/src/plugins.ts @@ -28,6 +28,10 @@ const userPluginsPath = path.join( 'plugins', ) +if (!fs.existsSync(userPluginsPath)) { + fs.mkdir(userPluginsPath) +} + Object.assign(window, { builtinPluginsPath, userPluginsPath }) nodeModule.globalPaths.unshift(builtinPluginsPath) nodeModule.globalPaths.unshift(path.join(userPluginsPath, 'node_modules'))