@pnpm/fs.indexed-pkg-importer
Advanced tools
Comparing version 5.0.12 to 5.0.13
@@ -47,13 +47,18 @@ "use strict"; | ||
function initialAuto(to, opts) { | ||
try { | ||
const _clonePkg = clonePkg.bind(null, createCloneFunction()); | ||
if (!_clonePkg(to, opts)) | ||
return undefined; | ||
core_loggers_1.packageImportMethodLogger.debug({ method: 'clone' }); | ||
auto = _clonePkg; | ||
return 'clone'; | ||
// Although reflinks are supported on Windows Dev Drives, | ||
// they are 10x slower than hard links. | ||
// Hence, we prefer reflinks by default only on Linux and macOS. | ||
if (process.platform !== 'win32') { | ||
try { | ||
const _clonePkg = clonePkg.bind(null, createCloneFunction()); | ||
if (!_clonePkg(to, opts)) | ||
return undefined; | ||
core_loggers_1.packageImportMethodLogger.debug({ method: 'clone' }); | ||
auto = _clonePkg; | ||
return 'clone'; | ||
} | ||
catch (err) { // eslint-disable-line | ||
// ignore | ||
} | ||
} | ||
catch (err) { // eslint-disable-line | ||
// ignore | ||
} | ||
try { | ||
@@ -123,3 +128,3 @@ if (!hardlinkPkg(graceful_fs_1.default.linkSync, to, opts)) | ||
// For instance: { "index.js": "hash", "./index.js": "hash" } | ||
if (!err.message.startsWith('File exists')) | ||
if (!err.message.startsWith('File exists') && !err.message.includes('-2147024816')) | ||
throw err; | ||
@@ -126,0 +131,0 @@ } |
{ | ||
"name": "@pnpm/fs.indexed-pkg-importer", | ||
"description": "Replicates indexed directories using hard links, copies, or cloning", | ||
"version": "5.0.12", | ||
"version": "5.0.13", | ||
"bugs": { | ||
@@ -29,8 +29,8 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"@pnpm/graceful-fs": "3.2.0", | ||
"@pnpm/store-controller-types": "17.1.4" | ||
"@pnpm/store-controller-types": "17.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/fs-extra": "^9.0.13", | ||
"@pnpm/fs.indexed-pkg-importer": "5.0.12", | ||
"@pnpm/prepare": "0.0.87" | ||
"@pnpm/fs.indexed-pkg-importer": "5.0.13", | ||
"@pnpm/prepare": "0.0.89" | ||
}, | ||
@@ -37,0 +37,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29938
368
+ Added@pnpm/fetcher-base@15.0.7(transitive)
+ Added@pnpm/resolver-base@11.1.0(transitive)
+ Added@pnpm/store-controller-types@17.2.0(transitive)
- Removed@pnpm/fetcher-base@15.0.6(transitive)
- Removed@pnpm/resolver-base@11.0.2(transitive)
- Removed@pnpm/store-controller-types@17.1.4(transitive)