(dir: string, pkg: Record<string, unknown>)
| 10 | const win = process.platform === "win32" |
| 11 | |
| 12 | const writePackage = (dir: string, pkg: Record<string, unknown>) => |
| 13 | Bun.write( |
| 14 | path.join(dir, "package.json"), |
| 15 | JSON.stringify({ |
| 16 | version: "1.0.0", |
| 17 | ...pkg, |
| 18 | }), |
| 19 | ) |
| 20 | |
| 21 | const npmLayer = (cache: string) => |
| 22 | AppNodeBuilder.build(Npm.node, [[Global.node, Global.layerWith({ cache, state: path.join(cache, "state") })]]) |