mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
[INS-2174] fixes create new plugin issue (#5473)
This commit is contained in:
parent
171674c80a
commit
327450cd77
@ -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(
|
||||
|
@ -240,6 +240,7 @@ export const Plugins: FC<Props> = ({ settings }) => {
|
||||
].join('\n'),
|
||||
);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
showAlert({
|
||||
title: 'Failed to Create Plugin',
|
||||
message: err.message,
|
||||
|
Loading…
Reference in New Issue
Block a user