Skip to content

Commit

Permalink
Default to converting folder name for cli plugin to kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
VachaShah committed May 13, 2021
1 parent a408c7a commit 41460d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli_plugin/install/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { cleanPrevious, cleanArtifacts } from './cleanup';
import { extract, getPackData } from './pack';
import { renamePlugin } from './rename';
import { existingInstall, assertVersion } from './opensearch_dashboards';
import { kebabCase } from 'lodash';

const mkdir = promisify(Fs.mkdir);

Expand All @@ -62,7 +63,7 @@ export async function install(settings, logger) {

assertVersion(settings);

const targetDir = path.join(settings.pluginDir, settings.plugins[0].id);
const targetDir = path.join(settings.pluginDir, kebabCase(settings.plugins[0].id));
await renamePlugin(settings.workingPath, targetDir);

logger.log('Plugin installation complete');
Expand Down

0 comments on commit 41460d3

Please sign in to comment.