mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 00:32:06 +08:00
cleanup last few Bun references
This commit is contained in:
parent
d48c48a760
commit
58cedfed50
@ -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)]),
|
||||
]
|
||||
|
@ -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 })
|
||||
// );
|
||||
|
Loading…
x
Reference in New Issue
Block a user