Skip to content

Commit

Permalink
fix(wrangler): Make wrangler generate deprecation warning more user…
Browse files Browse the repository at this point in the history
…-friendly (#6274)

Fixes #6222
  • Loading branch information
CarmenPopoviciu authored Jul 17, 2024
1 parent 5f6a5bc commit d8e56c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/wrangler/src/generate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ export async function generateHandler(args: GenerateArgs) {
await printWranglerBanner();

logger.warn(
`The \`generate\` command is no longer supported and will be removed in a future version.`
// TODO: recommend replacement commands
`Deprecation: \`wrangler generate\` has been deprecated and will be removed in a future version.\n` +
`Use \`npm create cloudflare@latest\` for new Workers and Pages projects.\n\n` +
`Please refer to https://developers.cloudflare.com/workers/wrangler/deprecations/#generate for more information."`
);

if (args.type) {
Expand Down

0 comments on commit d8e56c7

Please sign in to comment.