Skip to content

Commit

Permalink
fix(perf): lazy load workspace dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Apr 7, 2024
1 parent 90ba1c9 commit 836b800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/config/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const { walkUp } = require('walk-up-path')
const ini = require('ini')
const nopt = require('nopt')
const mapWorkspaces = require('@npmcli/map-workspaces')
const rpj = require('read-package-json-fast')
const log = require('proc-log')

Expand Down Expand Up @@ -704,6 +703,7 @@ class Config {
continue
}

const mapWorkspaces = require('@npmcli/map-workspaces')
const workspaces = await mapWorkspaces({ cwd: p, pkg })
for (const w of workspaces.values()) {
if (w === this.localPrefix) {
Expand Down

0 comments on commit 836b800

Please sign in to comment.