diff --git a/.changeset/gorgeous-paws-move.md b/.changeset/gorgeous-paws-move.md new file mode 100644 index 0000000000..9d4c464f4e --- /dev/null +++ b/.changeset/gorgeous-paws-move.md @@ -0,0 +1,5 @@ +--- +'@shopify/cli-hydrogen': minor +--- + +Remove deprecated --worker cli flag diff --git a/packages/cli/oclif.manifest.json b/packages/cli/oclif.manifest.json index 3d5ae2e224..edea7fe98f 100644 --- a/packages/cli/oclif.manifest.json +++ b/packages/cli/oclif.manifest.json @@ -369,7 +369,7 @@ "type": "option" }, "preview": { - "description": "Deploys to the Preview environment. Overrides --env-branch and Git metadata.", + "description": "Deploys to the Preview environment.", "name": "preview", "required": false, "allowNo": false, @@ -669,11 +669,6 @@ "allowNo": false, "type": "boolean" }, - "worker": { - "hidden": true, - "name": "worker", - "type": "boolean" - }, "legacy-runtime": { "description": "[Classic Remix Compiler] Runs the app in a Node.js sandbox instead of an Oxygen worker.", "env": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME", @@ -1323,11 +1318,6 @@ "multiple": false, "type": "option" }, - "worker": { - "hidden": true, - "name": "worker", - "type": "boolean" - }, "legacy-runtime": { "description": "Runs the app in a Node.js sandbox instead of an Oxygen worker.", "env": "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME", diff --git a/packages/cli/src/commands/hydrogen/deploy.ts b/packages/cli/src/commands/hydrogen/deploy.ts index fec7014f18..f48902471f 100644 --- a/packages/cli/src/commands/hydrogen/deploy.ts +++ b/packages/cli/src/commands/hydrogen/deploy.ts @@ -81,8 +81,7 @@ export default class Deploy extends Command { }, }), preview: Flags.boolean({ - description: - 'Deploys to the Preview environment. Overrides --env-branch and Git metadata.', + description: 'Deploys to the Preview environment.', required: false, default: false, }), diff --git a/packages/cli/src/commands/hydrogen/dev.ts b/packages/cli/src/commands/hydrogen/dev.ts index 504c0ce14e..2f2268b373 100644 --- a/packages/cli/src/commands/hydrogen/dev.ts +++ b/packages/cli/src/commands/hydrogen/dev.ts @@ -99,7 +99,6 @@ export default class Dev extends Command { }), // For the classic compiler: - worker: deprecated('--worker', {isBoolean: true}), ...overrideFlag(commonFlags.legacyRuntime, { 'legacy-runtime': { description: diff --git a/packages/cli/src/commands/hydrogen/preview.ts b/packages/cli/src/commands/hydrogen/preview.ts index ceb2fec09a..5e77b63348 100644 --- a/packages/cli/src/commands/hydrogen/preview.ts +++ b/packages/cli/src/commands/hydrogen/preview.ts @@ -33,7 +33,6 @@ export default class Preview extends Command { static flags = { ...commonFlags.path, ...commonFlags.port, - worker: deprecated('--worker', {isBoolean: true}), ...commonFlags.legacyRuntime, ...commonFlags.env, ...commonFlags.envBranch,