We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be43bb commit e012d09Copy full SHA for e012d09
1 file changed
rush-plugins/rush-published-versions-json-plugin/src/PublishedVersionsJsonPlugin.ts
@@ -26,6 +26,12 @@ export class PublishedVersionsJsonPlugin implements IRushPlugin {
26
session.hooks.runGlobalCustomCommand
27
.for('record-published-versions')
28
.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
+ }
35
command.setHandled();
36
37
const { terminal }: ILogger = session.getLogger(PLUGIN_NAME);
0 commit comments