diff --git a/gulpfile.js b/gulpfile.js index 62ac45f..623af8a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,9 +17,9 @@ var before_mocha = require('./test/before_mocha.js'); var pkg; try{ - pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8')) - pkg_bower = JSON.parse(fs.readFileSync('./bower.json', 'utf8')) - pkg_component = JSON.parse(fs.readFileSync('./component.json', 'utf8')) + pkg = require('./package.json') + pkg_bower = require('./bower.json') + pkg_component = require('./component.json') }catch(e){} gulp.task('node', function() { @@ -247,4 +247,4 @@ function signatrue(file, enc, cb){ function mini(file, enc, cb){ file.path = file.path.replace('.js', '.min.js'); cb(null, file) -} \ No newline at end of file +}