Skip to content

Commit

Permalink
fix: generate
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jan 26, 2022
1 parent 5ded1cd commit 3903854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gcommands/cli",
"version": "0.1.0-cli",
"version": "0.1.1-cli",
"description": "Generate projects, components, etc",
"type": "module",
"main": "dist/cli.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/generateCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const downloadCommandJob = (config, response) => {
.replace('{parameters}', response['listener-event'].parameters.join(', '));
}

fs.writeFileSync(`./${config.dirs.base}/${config.dirs[folder]}/${response['component-name']}.${config['project-language']}`, content);
fs.writeFileSync(`./${config.dirs.base}/${folder}/${response['component-name']}.${config['project-language']}`, content);

resolve(true);
});
Expand Down

0 comments on commit 3903854

Please sign in to comment.