Skip to content

Commit

Permalink
Fix for nested config files on 11ty
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips-cc committed Apr 26, 2024
1 parent 573fb3f commit fad6434
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudcannon/command-builder",
"version": "1.1.4",
"version": "1.1.5",
"description": "A script that builds the script that builds your site",
"main": "src/index.js",
"scripts": {
Expand Down
7 changes: 5 additions & 2 deletions src/lib/eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ function getInstallCommands(buildConfig) {
'CONFIG_DIR=`dirname $CONFIG`',
'echo $CONFIG_DIR',

'PWD=`pwd`',
'echo $PWD',

'CONFIG_BASE=`basename $CONFIG`',
'echo $CONFIG_BASE',

'CONFIG_INJECTED="$CONFIG_DIR/inject-cloudcannon.config.cjs"',
'CONFIG_INJECTED="$PWD/$CONFIG_DIR/inject-cloudcannon.config.cjs"',
'echo $CONFIG_INJECTED',

'export CC_ELEVENTY_CONFIG="$CONFIG_DIR/default-$CONFIG_BASE"',
'export CC_ELEVENTY_CONFIG="$PWD/$CONFIG_DIR/default-$CONFIG_BASE"',
'echo $CC_ELEVENTY_CONFIG',

// Move the site config file to injected config require location
Expand Down

0 comments on commit fad6434

Please sign in to comment.