Open
Description
Describe the bug
Don't process any file after configuration reading.
How To Reproduce
D:\src\our-scaffolds> simple-scaffold -c scaffold.config.js -k pominimfe -o d:\temp\aaa\output NewComponentName
Run with config:
module.exports = (conf) => {
console.log("Config:", conf);
return {
default: {
templates: ["examples/test-input/Component"],
output: "examples/test-output",
data: { property: "myProp", value: "10" },
},
pominimfe: {
templates: ["./templates/pomini-mfe"],
output: "output/pomini-mfe",
data: { property: "myProp", value: "10" },
},
component: {
templates: ["examples/test-input/Component"],
output: "examples/test-output/component",
data: { property: "myProp", value: "10" },
},
configs: {
templates: ["examples/test-input/**/.*"],
output: "examples/test-output/configs",
name: "---",
},
};
};
Expected behavior**
I shoud be see the code generated.
The ./templates/pomini-mfe
folder contain valid sources.
Logs
PS D:\src\our-scaffolds> simple-scaffold -c scaffold.config.js -k pominimfe -o d:\temp\aaa\output NewComponentName
Simple Scaffold v2.3.2
Loading config from file scaffold.config.js
Loading config from: D:\src\our-scaffolds\scaffold.config.js
Config: {
config: 'scaffold.config.js',
key: 'pominimfe',
output: 'd:\\temp\\aaa\\output',
name: 'NewComponentName',
overwrite: false,
subdir: false,
quiet: false,
logLevel: 'info',
dryRun: false,
tmpDir: 'C:\\Users\\CLAUDI~1\\AppData\\Local\\Temp\\scaffold-config-1738793361593-lm026acm7n'
}
Data: { name: 'NewComponentName', property: 'myProp', value: '10' }
PS D:\src\our-scaffolds>
Desktop (please complete the following information):
System:
OS: Windows 11 10.0.26100
Binaries:
Node: 22.13.0 - C:\nvm4w\nodejs\node.EXE
npm: 10.9.2 - C:\nvm4w\nodejs\npm.CMD
pnpm: 9.15.4 - C:\ProgramData\chocolatey\bin\pnpm.EXE