Skip to content

Commit 6565eeb

Browse files
authored
fix: bypass packument cache to prevent ETARGET errors after publish (#9045)
1 parent 6cb34ca commit 6565eeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/commands/pack.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Pack extends BaseCommand {
3939
const manifest = await pacote.manifest(spec, {
4040
...this.npm.flatOptions,
4141
Arborist,
42+
preferOnline: true,
4243
_isRoot: true,
4344
})
4445
if (!manifest._id) {
@@ -56,6 +57,7 @@ class Pack extends BaseCommand {
5657
foregroundScripts: this.npm.config.isDefault('foreground-scripts')
5758
? true
5859
: this.npm.config.get('foreground-scripts'),
60+
preferOnline: true,
5961
prefix: this.npm.localPrefix,
6062
workspaces: this.workspacePaths,
6163
})

0 commit comments

Comments
 (0)