Browse Source

fixes for when `nowConfig` is null

master
Nathan Rajlich 8 years ago
parent
commit
540caa4db7
  1. 2
      bin/now-alias.js
  2. 2
      bin/now-deploy.js

2
bin/now-alias.js

@ -301,7 +301,7 @@ async function realias(alias) {
quiet: true // `quiet`
})
const target = nowConfig.alias
const target = nowConfig && nowConfig.alias
// the user never intended to support aliases from the package
if (!target) {

2
bin/now-deploy.js

@ -373,7 +373,7 @@ async function sync(token) {
const now = new Now(apiUrl, token, {debug})
// Merge `now.env` from package.json with `-e` arguments.
const pkgEnv = nowConfig.env
const pkgEnv = nowConfig && nowConfig.env
const envs = [
...Object.keys(pkgEnv || {}).map(k => `${k}=${pkgEnv[k]}`),
...[].concat(argv.env || [])

Loading…
Cancel
Save