From 1f8e2dcdfbfef411a79ec72796fdc173d2835584 Mon Sep 17 00:00:00 2001 From: Donald Pakkies Date: Wed, 24 May 2023 22:37:04 +0200 Subject: [PATCH 1/3] chore: update installer --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index cf0261a..0cef2f6 100644 --- a/package.json +++ b/package.json @@ -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/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" From f78468937ee81afeb72dcc08d0baefe8027e27cb Mon Sep 17 00:00:00 2001 From: Donald Pakkies Date: Wed, 24 May 2023 22:37:16 +0200 Subject: [PATCH 2/3] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cef2f6..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": { From 2e74e04b8798f2ab2170734842b2abd2c8376dec Mon Sep 17 00:00:00 2001 From: Donald Pakkies Date: Wed, 24 May 2023 22:37:52 +0200 Subject: [PATCH 3/3] chore: push value to installerArgs if value is not boolean --- src/commands/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) } }