mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
chore!: remove deprecated verbose option from ts:generate-types
This commit is contained in:
parent
672727c8cf
commit
4300e8f16c
@ -27,8 +27,7 @@ const action = async ({ debug, silent, verbose, outDir }: CmdOptions) => {
|
|||||||
rootDir: outDir ?? undefined,
|
rootDir: outDir ?? undefined,
|
||||||
logger: {
|
logger: {
|
||||||
silent,
|
silent,
|
||||||
// TODO V5: verbose is deprecated and should be removed
|
debug,
|
||||||
debug: debug || verbose,
|
|
||||||
},
|
},
|
||||||
artifacts: { contentTypes: true, components: true },
|
artifacts: { contentTypes: true, components: true },
|
||||||
});
|
});
|
||||||
@ -42,7 +41,6 @@ const action = async ({ debug, silent, verbose, outDir }: CmdOptions) => {
|
|||||||
const command: StrapiCommand = () => {
|
const command: StrapiCommand = () => {
|
||||||
return createCommand('ts:generate-types')
|
return createCommand('ts:generate-types')
|
||||||
.description(`Generate TypeScript typings for your schemas`)
|
.description(`Generate TypeScript typings for your schemas`)
|
||||||
.option('--verbose', `[DEPRECATED] The verbose option has been replaced by debug`, false)
|
|
||||||
.option('-d, --debug', `Run the generation with debug messages`, false)
|
.option('-d, --debug', `Run the generation with debug messages`, false)
|
||||||
.option('-s, --silent', `Run the generation silently, without any output`, false)
|
.option('-s, --silent', `Run the generation silently, without any output`, false)
|
||||||
.option(
|
.option(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user