Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix(init): path of templates
Browse files Browse the repository at this point in the history
  • Loading branch information
rudxde committed Mar 1, 2022
1 parent 337c630 commit 007541a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/init/src/main.ts
Expand Up @@ -55,8 +55,8 @@ async function installLernaDockerize(args: IInitArgs): Promise<void> {
}

async function addTemplates(args: IInitArgs): Promise<void> {
const baseDockerfileSrc = joinPath(__dirname, '../../templates/Dockerfile.base');
const templateDockerfileSrc = joinPath(__dirname, '../../templates/Dockerfile.template');
const baseDockerfileSrc = joinPath(__dirname, '../templates/Dockerfile.base');
const templateDockerfileSrc = joinPath(__dirname, '../templates/Dockerfile.template');
const baseDockerfileDest = joinPath(args.workingDirectory ?? process.cwd(), args.baseDockerfileName);
const templateDockerfileDest = joinPath(args.workingDirectory ?? process.cwd(), args.templateDockerFileName);
await fsPromises.copyFile(baseDockerfileSrc, baseDockerfileDest);
Expand Down

0 comments on commit 007541a

Please sign in to comment.