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:
parent
c633200e86
commit
f62f21ee18
3 changed files with 17 additions and 38 deletions
|
|
@ -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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue