From ea7dadeb67e6baa8da3260a8556292a6764adfb4 Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Sun, 14 May 2017 22:50:29 -0700 Subject: [PATCH] Fix getting files for static deployments --- lib/index.js | 4 +++- lib/read-metadata.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 447db86..84c0685 100644 --- a/lib/index.js +++ b/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) } diff --git a/lib/read-metadata.js b/lib/read-metadata.js index 349321d..3634cc9 100644 --- a/lib/read-metadata.js +++ b/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)}`