Skip to content

Commit

Permalink
fix: add await keyword to copy-templates async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane committed Oct 24, 2018
1 parent 61f8e2f commit 31f989c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/copy-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import RepoBaseGenerator from './base-generator';
import copyTpl from './copy-tpl';

export async function copyTemplates(yo: RepoBaseGenerator) {
yo.templates.forEach((path) => {
await yo.templates.forEach((path) => {
copyTpl(yo, path);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/copy-tpl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import RepoBaseGenerator from './base-generator';

export async function copyTpl(yo: RepoBaseGenerator, path: string, newPath?: string) {
yo.fs.copyTpl(
await yo.fs.copyTpl(
yo.templatePath(path),
yo.destinationPath(newPath || path),
yo.context,
Expand Down

0 comments on commit 31f989c

Please sign in to comment.