Skip to content

Commit 06d23e7

Browse files
committed
fix: typo
1 parent e6c6003 commit 06d23e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/packTemplates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function packTemplate(templateName: string) {
2626
const templateDirectory = path.join(projectTemplatesDirectory, templateName);
2727
const gitignorePath = path.join(templateDirectory, ".gitignore");
2828
const ig = (await fs.pathExists(gitignorePath))
29-
? ignore().add(await fs.readFile(gitignorePath, "utf-8"))
29+
? ignore().add(await fs.readFile(gitignorePath, "utf8"))
3030
: ignore();
3131

3232
const files: PackagedFileEntry[] = [];
@@ -62,7 +62,7 @@ async function packDirectory({
6262
files, ig, currentPath: packItemPath, templateDirectory
6363
});
6464
} else {
65-
const fileContent = await fs.readFile(itemPath, "utf-8");
65+
const fileContent = await fs.readFile(itemPath, "utf8");
6666
const packItem: PackagedFileEntry = {
6767
path: packItemPath,
6868
content: fileContent

0 commit comments

Comments
 (0)