Skip to content

Commit

Permalink
fix encoding for reading in the tsconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Feb 12, 2025
1 parent 2f50b57 commit e00b56a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/build/stable/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export async function runCommand(
JSON.stringify(parsedPackageJson, null, 4)
);

const tsconfig = await readFile(
join(AZLE_PACKAGE_PATH, 'tsconfig.dev.json')
const tsconfig = JSON.parse(
await readFile(join(AZLE_PACKAGE_PATH, 'tsconfig.dev.json'), {
encoding: 'utf-8'
})
);

await outputFile(
Expand Down

0 comments on commit e00b56a

Please sign in to comment.