@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 +3 -3
- package/package.json +1 -1
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 =
|
|
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 &&
|
|
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
|
|
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