From 2027e9f2084964eb2a54b87ef3c784a8544c8c3d Mon Sep 17 00:00:00 2001 From: Marius Haugli Kristensen Date: Fri, 2 Oct 2015 08:21:47 +0200 Subject: [PATCH] Update example with missing require of semver --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7bfe89..667c3bb 100644 --- a/README.md +++ b/README.md @@ -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')); };