@rtorcato/repo-tooling 5.0.0 → 5.0.1

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.
package/dist/cli/index.js CHANGED
@@ -336,12 +336,12 @@ program
336
336
  });
337
337
  // The docs-site and brand scaffolds moved to @rtorcato/shared-docs (#718). The
338
338
  // fix targets stay as hidden pointers so old instructions fail with the fix.
339
- const MOVED_TARGETS = ['docs-site', 'brand'];
339
+ const MOVED_TARGETS = { 'docs-site': 'init', brand: 'brand' };
340
340
  program.hook('preAction', async (_, actionCommand) => {
341
341
  const target = actionCommand.args[0];
342
- if (actionCommand.name() === 'fix' && target && MOVED_TARGETS.includes(target)) {
342
+ if (actionCommand.name() === 'fix' && target && Object.hasOwn(MOVED_TARGETS, target)) {
343
343
  console.error(chalk.red(`\`repo-tooling fix ${target}\` moved to @rtorcato/shared-docs.`) +
344
- `\n Run \`npx @rtorcato/shared-docs …\` (see its README).`);
344
+ `\n Run \`npx @rtorcato/shared-docs ${MOVED_TARGETS[target]}\` instead.`);
345
345
  process.exit(1);
346
346
  }
347
347
  const refusal = await selfRepoRefusal(actionCommand.name(), actionCommand.args[0], actionCommand.opts());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtorcato/repo-tooling",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "One CLI to scaffold, audit and fix your repo's whole toolchain — linting, tests, commits, releases & CI.",
5
5
  "type": "module",
6
6
  "keywords": [