Browse Source

Fix getting files for static deployments

master
Tony Kovanen 8 years ago
parent
commit
ea7dadeb67
  1. 4
      lib/index.js
  2. 2
      lib/read-metadata.js

4
lib/index.js

@ -86,7 +86,9 @@ module.exports = class Now extends EventEmitter {
engines = nowConfig.engines || pkg.engines
forwardNpm = forwardNpm || nowConfig.forwardNpm
} else {
} else if (type === 'static') {
files = await getNpmFiles(path, pkg, nowConfig, opts)
} else if (type === 'docker') {
files = await getDockerFiles(path, nowConfig, opts)
}

2
lib/read-metadata.js

@ -123,7 +123,7 @@ async function readMetaData(
if (!name) {
name = basename(path)
if (!quiet && type !== 'STATIC') {
if (!quiet && type !== 'static') {
if (type === 'docker') {
console.log(
`> No \`name\` LABEL in \`Dockerfile\`, using ${chalk.bold(name)}`

Loading…
Cancel
Save