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

Commit f2ac137

Browse files
committed
Merge pull request #44 from crea1/patch-1
Update example with missing require of semver
2 parents aa25493 + 2027e9f commit f2ac137

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ gulp.task('bump', function(){
9999
```
100100
#### Bumping version and outputting different files
101101
```js
102-
103-
104102
// `fs` is used instead of require to prevent caching in watch (require caches)
105-
106103
var fs = require('fs');
104+
var semver = require('semver');
105+
107106
var getPackageJson = function () {
108107
return JSON.parse(fs.readFileSync('./package.json', 'utf8'));
109108
};

0 commit comments

Comments
 (0)