Skip to content

Commit

Permalink
feat: create cli tool for adding/removing plugins #351
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Jan 11, 2022
1 parent 42d624d commit 23ebd1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/plugin-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ const commands = {
var lastFolder = sourcePath.split('/').filter(function(el) {
return el.trim().length > 0;
}).pop().split('.').slice(0, -1).join('.');

fse.createReadStream(sourcePath).pipe(unzipper.Extract({ path: pluginsRepoPath }));
mkdirp.sync(path.join(pluginsRepoPath, lastFolder));
fse.createReadStream(sourcePath).pipe(unzipper.Extract({ path: path.join(pluginsRepoPath, lastFolder) }));

pluginsObj.push(this.createPluginEntry(lastFolder));
fse.writeFileSync(path.join(dirParamToPath('rootDir'), 'plugins.config.json'),JSON.stringify(pluginsObj, null, 2))
Expand Down

0 comments on commit 23ebd1d

Please sign in to comment.