Skip to content

Commit

Permalink
- Updated gulp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Cornu committed Nov 28, 2023
1 parent 9e86bda commit 974be0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/spfx/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ gulp.task('update-version', async () => {
const pkgVersion = `${semver.major(newVersionNumber)}.${semver.minor(newVersionNumber)}.${semver.patch(newVersionNumber)}.0`;
pkgSolution.solution.version = pkgVersion;
log.info('New package-solution.json version:\t' + pkgVersion);
fs.writeFile(pkgSolutionFilePath, JSON.stringify(pkgSolution, null, 4), (error) => {});
fs.writeFileSync(pkgSolutionFilePath, JSON.stringify(pkgSolution, null, 4), (error) => {});
});

// Updated version in Web Part manifests
Expand All @@ -144,7 +144,7 @@ gulp.task('update-version', async () => {
const wpVersion = `${semver.major(newVersionNumber)}.${semver.minor(newVersionNumber)}.${semver.patch(newVersionNumber)}`;
manifest.version = wpVersion;
log.info('New manifestFile version:\t' + wpVersion);
fs.writeFile(manifestFile, JSON.stringify(manifest, null, 4), (error) => { });
fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 4), (error) => { });
});
});
} else {
Expand Down

0 comments on commit 974be0b

Please sign in to comment.