MCPcopy Create free account
hub / github.com/massCodeIO/massCode / writeBundle

Function writeBundle

integrations/clipper/vite.config.ts:52–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 {
51 name: 'clipper-browser-manifest',
52 writeBundle() {
53 mkdirSync(outDir, { recursive: true })
54 const packageJson = readJson<ClipperPackage>(
55 resolve(root, 'package.json'),
56 )
57 const manifest = readJson<ExtensionManifest>(
58 resolve(root, 'manifests', `${browser}.json`),
59 )
60
61 manifest.version = packageJson.version
62
63 writeFileSync(
64 resolve(outDir, 'manifest.json'),
65 `${JSON.stringify(manifest, null, 2)}\n`,
66 )
67 },
68 },
69 ],
70 publicDir: resolve(root, 'public'),

Callers

nothing calls this directly

Calls 2

readJsonFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected