Skip to content

Commit 2fd8292

Browse files
committed
chore: work around @npmcli/git lazy loading
1 parent cd9a66d commit 2fd8292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/resetdeps.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const cleanup = async () => {
1212
}
1313

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

0 commit comments

Comments
 (0)