Skip to content

Commit

Permalink
fix: vue templates location with srcDir
Browse files Browse the repository at this point in the history
fix: vue templates location with srcDir
  • Loading branch information
adhamfarrag authored Nov 10, 2023
2 parents 189cb51 + 7e14ccd commit ea921fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export const createFile = async (args: { fileName: string; content: string; full

export const createVueTemplate = (content: string, type: string) => {

if (!existsSync(`${projectSrcDirectory()}/.vscode`)) {
mkdirSync(`${projectSrcDirectory()}/.vscode`);
if (!existsSync(`${projectRootDirectory()}/.vscode`)) {
mkdirSync(`${projectRootDirectory()}/.vscode`);
}

window
Expand All @@ -160,7 +160,7 @@ export const createVueTemplate = (content: string, type: string) => {
createFile({
fileName: name,
content,
fullPath: `${projectSrcDirectory()}/.vscode/${name}.${type}-template`
fullPath: `${projectRootDirectory()}/.vscode/${name}.${type}-template`
});
}
});
Expand Down

0 comments on commit ea921fe

Please sign in to comment.