feat(infra): went back to alpine and removed package.json merging

- Actually using pnpm workspace...
- Use alpine on both runner and builder container
- runner using lockfile generated by builder container
This commit is contained in:
Maieul BOYER 2025-08-03 16:04:24 +02:00
parent c633200e86
commit f62f21ee18
3 changed files with 17 additions and 38 deletions

View file

@ -1,23 +0,0 @@
#!/usr/bin/env node
import fs from 'node:fs/promises'
const merge_json = (prev, cur) => {
const keys = ["dependencies", "devDependencies"];
const out = {};
for (let k of keys)
out[k] = Object.assign(prev[k] ?? {}, cur[k] ?? {});
return out;
};
const promises = process.argv.slice(2).map(f => fs.readFile(f, { encoding: "utf8" }));
const jsons = (await Promise.all(promises)).map(JSON.parse);
const deps = jsons.reduce(merge_json, {});
const out = Object.assign(deps, {
private: true,
name: "stub",
});
console.log(JSON.stringify(out));