From 49a37e6bec76ae916adddd830979e8519027f53a Mon Sep 17 00:00:00 2001 From: Matt Hinchliffe Date: Tue, 12 Mar 2019 13:52:09 +0000 Subject: [PATCH] Fix deploy hashed assets task when run without an app name option --- tasks/deploy-hashed-assets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/deploy-hashed-assets.js b/tasks/deploy-hashed-assets.js index b65b40b5..b93b7d3a 100644 --- a/tasks/deploy-hashed-assets.js +++ b/tasks/deploy-hashed-assets.js @@ -43,9 +43,9 @@ function task (opts) { const shouldMonitorAssets = opts.monitorAssets; const directory = opts.directory || 'public'; - const appName = - normalizeName(opts.app) || - normalizeName(packageJson.name, { version: false }); + const appName = opts.app + ? normalizeName(opts.app) + : normalizeName(packageJson.name, { version: false }); let assetHashes;