We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aadc46 commit 4718480Copy full SHA for 4718480
script/content-migrations/use-short-versions.js
@@ -59,7 +59,11 @@ async function main () {
59
.replace(/>=?2\.19/, '*')
60
61
// Find the relevant version from the master list so we can access the short name.
62
- const versionObj = allVersions.find(version => version.plan === plan)
+ const versionObj = allVersions.find(version => version.plan === plan || version.shortName === plan)
63
+ if (!versionObj) {
64
+ console.error(`can't find supported version for ${plan}`)
65
+ process.exit(1)
66
+ }
67
delete data.versions[plan]
68
data.versions[versionObj.shortName] = valueToUse
69
})
0 commit comments