fix(docker): preserve peer deps in packed packages
This commit is contained in:
parent
7361cba125
commit
64c9fc8afe
@ -183,7 +183,7 @@ const plan = JSON.parse(fs.readFileSync(planPath, 'utf8'));
|
||||
const tarballRefFor = (scopedName) =>
|
||||
`file:/app/${targetBasename}/.docker-deps/${scopedName.replace('@bytelyst/', 'bytelyst-')}-${plan.versions[scopedName]}.tgz`;
|
||||
|
||||
for (const depField of ['dependencies', 'optionalDependencies', 'peerDependencies']) {
|
||||
for (const depField of ['dependencies', 'optionalDependencies']) {
|
||||
for (const [depName, depVersion] of Object.entries(pkg[depField] ?? {})) {
|
||||
if (!depName.startsWith('@bytelyst/')) {
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user