Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Function was renamed to updateFileSync
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Oct 2, 2016
1 parent a7619a9 commit 747641e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ Builder.prototype.prepareRelease = function(releaseVersion, callback) {

if (process.env.DRY_RUN) {
log.warn('Dry run! To perform the release, run the command again without DRY_RUN environment variable');
} else {
bfs.updateFileSync('package.json', /"version": "(.*?)"/g, '"version": "' + releaseVersion + '"');
}

this.replaceFileSync('package.json', /"version": "(.*?)"/g, '"version": "' + releaseVersion + '"');
callback();
};

Expand Down

0 comments on commit 747641e

Please sign in to comment.