Skip to content

Commit dd7dfa6

Browse files
committed
Merge branch 'master' into beta
2 parents efe0752 + ee26b0e commit dd7dfa6

3 files changed

Lines changed: 27 additions & 28 deletions

File tree

package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generate-react-cli",
3-
"version": "8.1.1-beta.1",
3+
"version": "8.1.2",
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",
@@ -56,7 +56,7 @@
5656
"@semantic-release/github": "8.0.7",
5757
"@semantic-release/npm": "9.0.1",
5858
"@semantic-release/release-notes-generator": "10.0.3",
59-
"eslint": "8.29.0",
59+
"eslint": "8.30.0",
6060
"eslint-config-airbnb-base": "15.0.0",
6161
"eslint-config-prettier": "8.5.0",
6262
"eslint-plugin-prettier": "4.2.1",

src/commands/generateComponent.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ 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('-f, --flat', 'Generate the files in the mentioned path insted of creating new folder for it', false)
28+
.option('-dr, --dry-run', 'Show what will be generated without writing to disk');
2829

2930
// Dynamic component command option defaults.
3031

@@ -38,8 +39,6 @@ export default function initGenerateComponentCommand(args, cliConfigFile, progra
3839
);
3940
});
4041

41-
componentCommand.option('--dry-run', 'Show what will be generated without writing to disk');
42-
4342
// Component command action.
4443

4544
componentCommand.action((componentNames, cmd) =>

0 commit comments

Comments
 (0)