Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #560 from Financial-Times/matth/fix-hashed-assets
Browse files Browse the repository at this point in the history
Fix deploy hashed assets task when run without an app name option
  • Loading branch information
ker-an authored Mar 12, 2019
2 parents d87ca90 + 49a37e6 commit cb71981
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/deploy-hashed-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cb71981

Please sign in to comment.