srcpack 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/init.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
 
3
3
  import * as p from "@clack/prompts";
4
- import { appendFile, readFile } from "node:fs/promises";
4
+ import { appendFile, readFile, writeFile } from "node:fs/promises";
5
5
  import { existsSync } from "node:fs";
6
6
  import { join } from "node:path";
7
7
 
@@ -70,7 +70,7 @@ export async function runInit(): Promise<void> {
70
70
 
71
71
  // Generate and write config
72
72
  const config = generateConfig(bundles, outDirValue);
73
- await Bun.write(configPath, config);
73
+ await writeFile(configPath, config);
74
74
 
75
75
  // Add output directory to .gitignore
76
76
  await addToGitignore(cwd, outDirValue);