mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
6
.changeset/clever-ghosts-cover.md
Normal file
6
.changeset/clever-ghosts-cover.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/headless": minor
|
||||
"supi": minor
|
||||
---
|
||||
|
||||
Create the module dirs of dependencies before importing them and linking their dependencies.
|
||||
@@ -217,6 +217,7 @@ export default async (opts: HeadlessOptions) => {
|
||||
prefix: lockfileDir,
|
||||
})
|
||||
|
||||
await Promise.all(depNodes.map((depNode) => fs.mkdir(depNode.modules, { recursive: true })))
|
||||
await Promise.all([
|
||||
linkAllModules(depNodes, {
|
||||
lockfileDir,
|
||||
|
||||
@@ -307,6 +307,7 @@ async function linkNewPackages (
|
||||
|
||||
const newPkgs = R.props<string, DependenciesGraphNode>(newDepPaths, depGraph)
|
||||
|
||||
await Promise.all(newPkgs.map((depNode) => fs.mkdir(depNode.modules, { recursive: true })))
|
||||
await Promise.all([
|
||||
linkAllModules(newPkgs, depGraph, {
|
||||
lockfileDir: opts.lockfileDir,
|
||||
|
||||
Reference in New Issue
Block a user