File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,9 +316,10 @@ function Main {
316316 } | ConvertTo-Json - Depth 10
317317 Set-Content - Path (Join-Path $VersionDir " package.json" ) - Value $wrapperJson
318318
319- # Isolate from user's global pnpm config (e.g. minimumReleaseAge)
320- # by creating a local .npmrc in the version directory.
321- Set-Content - Path (Join-Path $VersionDir " .npmrc" ) - Value " minimum-release-age=0"
319+ # Isolate from user's global package manager config that may block
320+ # installing recently-published packages (e.g. pnpm's minimumReleaseAge,
321+ # npm's min-release-age) by creating a local .npmrc in the version directory.
322+ Set-Content - Path (Join-Path $VersionDir " .npmrc" ) - Value " minimum-release-age=0`n min-release-age=0"
322323
323324 # Install production dependencies (skip if VITE_PLUS_SKIP_DEPS_INSTALL is set,
324325 # e.g. during local dev where install-global-cli.ts handles deps separately)
Original file line number Diff line number Diff line change @@ -574,10 +574,12 @@ main() {
574574}
575575WRAPPER_EOF
576576
577- # Isolate from user's global pnpm config (e.g. minimumReleaseAge)
578- # by creating a local .npmrc in the version directory.
577+ # Isolate from user's global package manager config that may block
578+ # installing recently-published packages (e.g. pnpm's minimumReleaseAge,
579+ # npm's min-release-age) by creating a local .npmrc in the version directory.
579580 cat > " $VERSION_DIR /.npmrc" << NPMRC_EOF
580581minimum-release-age=0
582+ min-release-age=0
581583NPMRC_EOF
582584
583585 # Install production dependencies (skip if VITE_PLUS_SKIP_DEPS_INSTALL is set,
You can’t perform that action at this time.
0 commit comments