Skip to content

Commit 2aab2a8

Browse files
committed
Merge branch 'master' into beta
2 parents dd7dfa6 + 14a76c6 commit 2aab2a8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generate-react-cli",
3-
"version": "8.1.2",
3+
"version": "8.2.0",
44
"description": "A simple React CLI to generate components instantly and more.",
55
"repository": "https://github.com/arminbro/generate-react-cli",
66
"bugs": "https://github.com/arminbro/generate-react-cli/issues",

src/commands/generateComponent.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export default function initGenerateComponentCommand(args, cliConfigFile, progra
2424
'Describe the component you want GRC to generate (e.g., Create a counter component that increments by one when I click on the increment button).',
2525
null
2626
)
27-
.option('-f, --flat', 'Generate the files in the mentioned path insted of creating new folder for it', false)
27+
.option(
28+
'-f, --flat',
29+
'Generate the files in the mentioned path instead of creating new folder for it',
30+
selectedComponentType.flat || false
31+
)
2832
.option('-dr, --dry-run', 'Show what will be generated without writing to disk');
2933

3034
// Dynamic component command option defaults.

0 commit comments

Comments
 (0)