diff --git a/generators/init/__snapshots__/generator.spec.ts.snap b/generators/init/__snapshots__/generator.spec.ts.snap index 18b0abd3ff78..207df51de565 100644 --- a/generators/init/__snapshots__/generator.spec.ts.snap +++ b/generators/init/__snapshots__/generator.spec.ts.snap @@ -11,9 +11,12 @@ Options: --skip-install Do not automatically install dependencies (default: false) --force-install Fail on install dependencies error (default: false) --ask-answered Show prompts for already configured options (default: false) + --skip-git Skip git repository initialization + --force-git Force commit to git repository + --commit-msg Commit changes (implies forceGit) + --monorepository Use monorepository --base-name Application base name --prettier-tab-width Default tab width for prettier - --monorepository Use monorepository --skip-commit-hook Skip adding husky commit hooks -h, --help display help for command " diff --git a/generators/init/command.ts b/generators/init/command.ts index 559f8c4ecc41..8935ece74f6e 100644 --- a/generators/init/command.ts +++ b/generators/init/command.ts @@ -19,9 +19,9 @@ import type { JHipsterCommandDefinition } from '../../lib/command/index.js'; import { GENERATOR_PROJECT_NAME } from '../generator-list.js'; -const command: JHipsterCommandDefinition = { +const command = { options: {}, - import: [GENERATOR_PROJECT_NAME, 'jhipster:javascript:prettier', 'jhipster:javascript:husky'], -}; + import: ['jhipster:git', GENERATOR_PROJECT_NAME, 'jhipster:javascript:prettier', 'jhipster:javascript:husky'], +} as const satisfies JHipsterCommandDefinition; export default command;