Skip to content

Commit e2ce8d2

Browse files
authored
Merge pull request #4 from formidablejs/hotfix/installer-arguments
Hotfix/installer arguments
2 parents a9e83b9 + 2e74e04 commit e2ce8d2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-formidable",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "The Formidable Framework Installer",
55
"author": "Donald Pakkies @donaldp",
66
"bin": {
@@ -17,7 +17,7 @@
1717
"/oclif.manifest.json"
1818
],
1919
"dependencies": {
20-
"@formidablejs/installer": "^0.9.1",
20+
"@formidablejs/installer": "^0.9.2",
2121
"@inquirer/prompts": "^1.2.1",
2222
"@oclif/core": "^2",
2323
"@oclif/plugin-help": "^5",

src/commands/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ export default class Create extends Command {
4444
const installerArgs = ['new', args.name]
4545

4646
for (const [key, value] of Object.entries(flags)) {
47-
if (value) {
47+
if (value === true) {
4848
installerArgs.push(`--${key}`)
49+
} else {
50+
installerArgs.push(`--${key}`)
51+
installerArgs.push(value)
4952
}
5053
}
5154

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@
239239
minimatch "^3.0.4"
240240
strip-json-comments "^3.1.1"
241241

242-
"@formidablejs/installer@^0.9.1":
243-
version "0.9.1"
244-
resolved "https://registry.yarnpkg.com/@formidablejs/installer/-/installer-0.9.1.tgz#608300dfe67ca61efc7f9e81df8a2b9971b6309a"
245-
integrity sha512-6U7D0D4kjCrpUW+od0XDk4ckqs0bNoeSjUx8zFkWPLsfk9rmg6K0g3SLYyQlHmHp5wAk8AlvcyIDT2P940iswg==
242+
"@formidablejs/installer@^0.9.2":
243+
version "0.9.2"
244+
resolved "https://registry.yarnpkg.com/@formidablejs/installer/-/installer-0.9.2.tgz#0f6323bc19050be782a1ed53df899b8a7cb41041"
245+
integrity sha512-W8H3vGirunGiE0hY2GAUMpbYBg2L6LKCcNI8lIgfEepjNIbZeDgTlr4N6X0RgrPhymKaHZEEFOpkrMhKTWwXiA==
246246
dependencies:
247247
"@oclif/core" "^1"
248248
"@oclif/plugin-help" "^5"

0 commit comments

Comments
 (0)