diff --git a/package.json b/package.json index cf0261a..4e5a3ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-formidable", - "version": "0.0.1", + "version": "0.0.2", "description": "The Formidable Framework Installer", "author": "Donald Pakkies @donaldp", "bin": { @@ -17,7 +17,7 @@ "/oclif.manifest.json" ], "dependencies": { - "@formidablejs/installer": "^0.9.1", + "@formidablejs/installer": "^0.9.2", "@inquirer/prompts": "^1.2.1", "@oclif/core": "^2", "@oclif/plugin-help": "^5", diff --git a/src/commands/index.ts b/src/commands/index.ts index 9419e0d..30db8ca 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -44,8 +44,11 @@ export default class Create extends Command { const installerArgs = ['new', args.name] for (const [key, value] of Object.entries(flags)) { - if (value) { + if (value === true) { installerArgs.push(`--${key}`) + } else { + installerArgs.push(`--${key}`) + installerArgs.push(value) } } diff --git a/yarn.lock b/yarn.lock index 43cee4f..12b0188 100644 --- a/yarn.lock +++ b/yarn.lock @@ -239,10 +239,10 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@formidablejs/installer@^0.9.1": - version "0.9.1" - resolved "https://registry.yarnpkg.com/@formidablejs/installer/-/installer-0.9.1.tgz#608300dfe67ca61efc7f9e81df8a2b9971b6309a" - integrity sha512-6U7D0D4kjCrpUW+od0XDk4ckqs0bNoeSjUx8zFkWPLsfk9rmg6K0g3SLYyQlHmHp5wAk8AlvcyIDT2P940iswg== +"@formidablejs/installer@^0.9.2": + version "0.9.2" + resolved "https://registry.yarnpkg.com/@formidablejs/installer/-/installer-0.9.2.tgz#0f6323bc19050be782a1ed53df899b8a7cb41041" + integrity sha512-W8H3vGirunGiE0hY2GAUMpbYBg2L6LKCcNI8lIgfEepjNIbZeDgTlr4N6X0RgrPhymKaHZEEFOpkrMhKTWwXiA== dependencies: "@oclif/core" "^1" "@oclif/plugin-help" "^5"