Skip to content

Commit e012d09

Browse files
committed
fixup! Introduce rush-published-versions-json-plugin.
1 parent 4be43bb commit e012d09

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rush-plugins/rush-published-versions-json-plugin/src/PublishedVersionsJsonPlugin.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export class PublishedVersionsJsonPlugin implements IRushPlugin {
2626
session.hooks.runGlobalCustomCommand
2727
.for('record-published-versions')
2828
.tapPromise(PLUGIN_NAME, async (command: IGlobalCommand) => {
29+
if (typeof command.setHandled !== 'function') {
30+
throw new Error(
31+
`${PLUGIN_NAME} requires Rush version 5.171.0 or newer. ` +
32+
'Please upgrade your Rush installation.'
33+
);
34+
}
2935
command.setHandled();
3036

3137
const { terminal }: ILogger = session.getLogger(PLUGIN_NAME);

0 commit comments

Comments
 (0)