Skip to content

Commit 2d953fa

Browse files
authored
fix: make spfx version script work for rc version (#2396)
1 parent f10a96b commit 2d953fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/setVersion.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ const updateSpfxSolutionVersion = (solutions, version) => {
4444
if (isPreview) {
4545
version = version.replace(/-preview\./, '.');
4646
}
47+
const isRC = version.indexOf('-rc') > 0;
48+
if (isRC) {
49+
version = version.replace(/-rc\./, '.');
50+
}
4751
for (let solution of solutions) {
4852
console.log(`updating spfx solution ${solution} with version ${version}`);
4953
const data = fs.readFileSync(solution, 'utf8');

0 commit comments

Comments
 (0)