diff --git a/src/utils/config.js b/src/utils/config.js index 7fe9dc3ea..bb5a46ad6 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -3,10 +3,16 @@ import { existsSync, copyFile } from "fs"; export default function checkAndCopyConfig(config) { const configYaml = join(process.cwd(), "config", config); + console.log("config:", configYaml); if (!existsSync(configYaml)) { + console.log("does not exist"); const configSkeleton = join(process.cwd(), "src", "skeleton", config); + console.log("skeleton", configSkeleton); copyFile(configSkeleton, configYaml, (err) => { - if (err) throw err; + if (err) { + console.log("error copying config", err); + throw err; + } console.info("%s was copied to the config folder", config); }); }