Skip to content

Commit

Permalink
chore: work around @npmcli/git lazy loading
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jan 9, 2024
1 parent cd9a66d commit 2fd8292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/resetdeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const cleanup = async () => {
}

const main = async ({ packageLock }) => {
await git('status') // run ANY @npmcli/git command to instantiate its lazy loading
await fs.rimraf(join(CWD, 'node_modules'))
for (const { path } of await pkg.mapWorkspaces()) {
await fs.rimraf(join(path, 'node_modules'))
Expand Down

0 comments on commit 2fd8292

Please sign in to comment.