Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Update example with missing require of semver
Browse files Browse the repository at this point in the history
  • Loading branch information
crea1 committed Oct 2, 2015
1 parent aa25493 commit 2027e9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ gulp.task('bump', function(){
```
#### Bumping version and outputting different files
```js


// `fs` is used instead of require to prevent caching in watch (require caches)

var fs = require('fs');
var semver = require('semver');

var getPackageJson = function () {
return JSON.parse(fs.readFileSync('./package.json', 'utf8'));
};
Expand Down

0 comments on commit 2027e9f

Please sign in to comment.