diff --git a/.changeset/wicked-needles-brake.md b/.changeset/wicked-needles-brake.md new file mode 100644 index 0000000..781b20b --- /dev/null +++ b/.changeset/wicked-needles-brake.md @@ -0,0 +1,5 @@ +--- +"node-plop": patch +--- + +Fix passing configuration to loaded plopfiles. diff --git a/packages/node-plop/src/node-plop.js b/packages/node-plop/src/node-plop.js index 043bd12..0154e35 100644 --- a/packages/node-plop/src/node-plop.js +++ b/packages/node-plop/src/node-plop.js @@ -100,6 +100,8 @@ async function nodePlop(plopfilePath = "", plopCfg = {}) { targets = [targets]; } const config = Object.assign( + {}, // forces shallow copy of plopCfg + plopCfg, { destBasePath: getDestBasePath(), },