feat(scaffolder): create new tempdir for result

This commit is contained in:
Ivan Shmidt
2020-06-25 00:16:26 +02:00
parent bca0ebf3c9
commit 1dd56d28a9
@@ -48,10 +48,7 @@ export class CookieCutter implements TemplaterBase {
await fs.writeJSON(`${options.directory}/cookiecutter.json`, cookieInfo);
const templateDir = options.directory;
// TODO(blam): This should be an entirely different directory on the host machine
// not in the template directory
const resultDir = `${templateDir}/result`;
const resultDir = await fs.promises.mkdtemp(`${options.directory}-result`);
await runDockerContainer({
imageName: 'backstage/cookiecutter',