mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
fix: always import the package from the store
This commit is contained in:
5
.changeset/fluffy-monkeys-change.md
Normal file
5
.changeset/fluffy-monkeys-change.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/package-store": patch
|
||||
---
|
||||
|
||||
Fixing a regression. Package should be imported when import method is being identified.
|
||||
@@ -75,7 +75,7 @@ function createAutoImporter (): ImportFunction {
|
||||
// We still choose hard linking that will fall back to copying in edge cases.
|
||||
packageImportMethodLogger.debug({ method: 'hardlink' })
|
||||
auto = hardlinkPkg.bind(null, linkOrCopy)
|
||||
return 'hardlink'
|
||||
return auto(to, opts)
|
||||
}
|
||||
if (!err.message.startsWith('EXDEV: cross-device link not permitted')) throw err
|
||||
globalWarn(err.message)
|
||||
|
||||
Reference in New Issue
Block a user