Skip to content

Commit

Permalink
fix: jcrPath option not working fixes amclin#40
Browse files Browse the repository at this point in the history
  • Loading branch information
amclin committed Feb 26, 2019
1 parent 1148aad commit a7a0fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aem-packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {

// Define default fallbacks for all unset configs
const defaults = require('./src/defaults.json')
defaults.options.jcrPath = undefined // Set here so it exists when we loop later. Cannot be declared undefined in JSON

// Merge configurations from various sources
var configs = {}
Expand Down Expand Up @@ -80,7 +81,8 @@ const getDefines = function (configs) {
// Apply configurations from paths
const pathOptions = {
srcDir: resolvePath(configs.options.srcDir),
buildDir: resolvePath(configs.options.buildDir)
buildDir: resolvePath(configs.options.buildDir),
jcrPath: configs.options.jcrPath // Doesn't use resolvePath() because this is not a filesystem path
}

_.defaults(
Expand Down

0 comments on commit a7a0fb6

Please sign in to comment.