Skip to content

Commit

Permalink
refactor: Minifier bumps deps and uses Bun.write (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Apr 22, 2024
1 parent fb0143b commit 92f9d7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified minifier/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion minifier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function createMiniDefinition(jsonData: JsonData, uniqueKey: string): ProcessedD
async function saveToJsonFile(data: any, filePath: string): Promise<void> {
try {
const jsonString = JSON.stringify(data, null, 0);
await fs.promises.writeFile(filePath, jsonString, "utf-8");
await Bun.write(filePath, jsonString);
console.log(`Data saved to ${filePath}`);
} catch (error) {
throw new Error(`Failed to save data to file: ${error}`);
Expand Down
4 changes: 2 additions & 2 deletions minifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "bun run index.ts"
},
"devDependencies": {
"@types/bun": "1.0.12",
"typescript": "5.4.3"
"@types/bun": "1.1.0",
"typescript": "5.4.5"
}
}

0 comments on commit 92f9d7f

Please sign in to comment.