Merge pull request #119 from hawkrives/normalize-package-metadata

Use normalize-package-metadata to normalize package.json info
This commit is contained in:
Stephan Bönnemann 2015-11-26 13:43:57 +01:00
commit 006213b9ca
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@
"lodash": "^3.10.1",
"nerf-dart": "^1.0.0",
"nopt": "^3.0.3",
"normalize-package-data": "^2.3.4",
"npmconf": "^2.1.2",
"npmlog": "^2.0.0",
"parse-github-repo-url": "^1.0.0",

View File

@ -6,10 +6,11 @@ const _ = require('lodash')
const log = require('npmlog')
const nopt = require('nopt')
const npmconf = require('npmconf')
const normalizeData = require('normalize-package-data')
log.heading = 'semantic-release'
const env = process.env
const pkg = JSON.parse(readFileSync('./package.json'))
const pkg = normalizeData(readFileSync('./package.json'))
const knownOptions = {
branch: String,
debug: Boolean,