From 25bb926a0a854f96b18152f3b93f4fa41cc3593b Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 4 Oct 2022 09:43:24 +0200 Subject: [PATCH] Toolkit: Deprecate `component:create` command (#56086) * Mark component:create as deprecated * Update message * Update packages/grafana-toolkit/src/cli/index.ts Co-authored-by: Jack Westbrook * Add alternative message Co-authored-by: Jack Westbrook --- packages/grafana-toolkit/src/cli/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/grafana-toolkit/src/cli/index.ts b/packages/grafana-toolkit/src/cli/index.ts index 0ddfaabb9bc..738d80daa83 100644 --- a/packages/grafana-toolkit/src/cli/index.ts +++ b/packages/grafana-toolkit/src/cli/index.ts @@ -103,9 +103,15 @@ export const run = (includeInternalScripts = false) => { program .command('component:create') .description( - 'Scaffold React components. Optionally add test, story and .mdx files. The components are created in the same dir the script is run from.' + '[deprecated] Scaffold React components. Optionally add test, story and .mdx files. The components are created in the same dir the script is run from.' ) .action(async () => { + chalk.yellow.bold( + `⚠️ This command is deprecated and will be removed in v10. No further support will be provided. ⚠️` + ); + console.log( + 'if you were reliant on this command we recommend https://www.npmjs.com/package/react-gen-component' + ); await execTask(componentCreateTask)({}); }); }