diff --git a/packages/insomnia/src/plugins/create.ts b/packages/insomnia/src/plugins/create.ts index 03021968a..267760b07 100644 --- a/packages/insomnia/src/plugins/create.ts +++ b/packages/insomnia/src/plugins/create.ts @@ -1,7 +1,6 @@ import fs from 'fs'; import mkdirp from 'mkdirp'; import path from 'path'; -import rimraf from 'rimraf'; import { getDataDirectory } from '../common/electron-helpers'; @@ -16,7 +15,6 @@ export async function createPlugin( throw new Error(`Plugin already exists at "${pluginDir}"`); } - rimraf.sync(pluginDir); mkdirp.sync(pluginDir); // Write package.json fs.writeFileSync( diff --git a/packages/insomnia/src/ui/components/settings/plugins.tsx b/packages/insomnia/src/ui/components/settings/plugins.tsx index 7efbfa8cd..9006fd670 100644 --- a/packages/insomnia/src/ui/components/settings/plugins.tsx +++ b/packages/insomnia/src/ui/components/settings/plugins.tsx @@ -240,6 +240,7 @@ export const Plugins: FC = ({ settings }) => { ].join('\n'), ); } catch (err) { + console.error(err); showAlert({ title: 'Failed to Create Plugin', message: err.message,