dotcom-tool-kit 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/plugin/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAI/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAKrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,qBAAqB,WAAY,MAAM,UAAU,kBAAkB,KAAG,aAAa,EAoD/F,CAAA;AAED,eAAO,MAAM,oBAAoB,WAAY,MAAM,UAAU,kBAAkB,KAAG,IAgHjF,CAAA"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/plugin/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAA4B,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAI/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAKrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,qBAAqB,WAAY,MAAM,UAAU,kBAAkB,KAAG,aAAa,EAwD/F,CAAA;AAED,eAAO,MAAM,oBAAoB,WAAY,MAAM,UAAU,kBAAkB,KAAG,IAgHjF,CAAA"}
@@ -25,7 +25,7 @@ const validatePluginOptions = (logger, config) => {
25
25
  id,
26
26
  new zod_1.ZodError([
27
27
  {
28
- message: `options for ${logger_1.styles.plugin(id)} have moved to the ${logger_1.styles.task(movedToTask)} task`,
28
+ message: `your ${logger_1.styles.filepath('.toolkitrc.yml')} has options for the ${logger_1.styles.plugin(id)} plugin, which are now task options. move these options to ${logger_1.styles.code(`options.tasks.${logger_1.styles.task(movedToTask)}`)}`,
29
29
  code: zod_1.ZodIssueCode.custom,
30
30
  path: []
31
31
  }
@@ -63,7 +63,7 @@ async function reducePluginHookInstallations(logger, config, hookClasses, plugin
63
63
  return (0, validated_1.invalid)([(0, messages_1.formatInvalidOption)([logger_1.styles.hook(id), parsedOptions.error])]);
64
64
  }
65
65
  const installation = {
66
- options: parsedOptions ?? configHookOptions,
66
+ options: parsedOptions?.data ?? configHookOptions,
67
67
  plugin,
68
68
  forHook: id,
69
69
  hookConstructor: hookClass
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotcom-tool-kit",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "modern, maintainable, modular developer tooling for FT.com projects",
5
5
  "author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
6
6
  "license": "MIT",