From 39038547bcdedfe06f2f1f88aad2819533c87597 Mon Sep 17 00:00:00 2001 From: xhyrom Date: Wed, 26 Jan 2022 16:15:58 +0100 Subject: [PATCH] fix: generate --- package.json | 2 +- src/commands/generateCommand.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b95d20d..c2b9f91 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/commands/generateCommand.ts b/src/commands/generateCommand.ts index a33e9b2..9314d6c 100644 --- a/src/commands/generateCommand.ts +++ b/src/commands/generateCommand.ts @@ -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); });