cleanup last few Bun references

This commit is contained in:
Norbert de Langen 2024-08-07 19:32:46 +02:00
parent d48c48a760
commit 58cedfed50
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import { readJson } from 'fs-extra';
import { join } from 'node:path';
export async function flattenDependencies(
@ -16,7 +17,7 @@ export async function flattenDependencies(
console.log(dep + ' not found');
return;
}
const { dependencies = {}, peerDependencies = {} } = await Bun.file(path).json();
const { dependencies = {}, peerDependencies = {} } = await readJson(path);
const all: string[] = [
...new Set([...Object.keys(dependencies), ...Object.keys(peerDependencies)]),
]

View File

@ -320,8 +320,8 @@ async function run() {
*/
// if (out.metafile) {
// await Bun.write('report/meta.json', JSON.stringify(out.metafile, null, 2));
// await Bun.write(
// await writeFile('report/meta.json', JSON.stringify(out.metafile, null, 2));
// await writeFile(
// 'report/meta.txt',
// await esbuild.analyzeMetafile(out.metafile, { color: false, verbose: false })
// );