From 14c54727e1151aadeb351e3b9482eb599ec31085 Mon Sep 17 00:00:00 2001 From: Kara Brightwell Date: Tue, 22 Oct 2024 14:48:37 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20clarify=20the=20plugin=E2=86=92task=20op?= =?UTF-8?q?tions=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/cli/src/plugin/options.ts | 6 +++++- package-lock.json | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/cli/src/plugin/options.ts b/core/cli/src/plugin/options.ts index 6696ea5f4..ee84a66bc 100644 --- a/core/cli/src/plugin/options.ts +++ b/core/cli/src/plugin/options.ts @@ -33,7 +33,11 @@ export const validatePluginOptions = (logger: Logger, config: ValidPluginsConfig id, new ZodError([ { - message: `options for ${styles.plugin(id)} have moved to the ${styles.task(movedToTask)} task`, + message: `your ${styles.filepath('.toolkitrc.yml')} has options for the ${styles.plugin( + id + )} plugin, which are now task options. move these options to ${styles.code( + `options.tasks.${styles.task(movedToTask)}` + )}`, code: ZodIssueCode.custom, path: [] } diff --git a/package-lock.json b/package-lock.json index 40e8609f8..1bb28f43c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ }, "core/cli": { "name": "dotcom-tool-kit", - "version": "4.0.2", + "version": "4.0.5", "license": "MIT", "dependencies": { "@dotcom-tool-kit/base": "^1.0.0", @@ -141,7 +141,7 @@ }, "core/create": { "name": "@dotcom-tool-kit/create", - "version": "4.0.2", + "version": "4.0.5", "license": "ISC", "dependencies": { "@aws-sdk/client-iam": "^3.282.0", @@ -177,7 +177,7 @@ "@types/node-fetch": "^2.6.2", "@types/pacote": "^11.1.3", "@types/prompts": "^2.0.14", - "dotcom-tool-kit": "^4.0.2", + "dotcom-tool-kit": "^4.0.5", "type-fest": "^3.13.1" }, "engines": {