@pnpm/symlink-dependency
Advanced tools
Comparing version
@@ -9,2 +9,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const util_1 = __importDefault(require("util")); | ||
const core_loggers_1 = require("@pnpm/core-loggers"); | ||
@@ -27,4 +28,4 @@ const symlink_dir_1 = __importDefault(require("symlink-dir")); | ||
} | ||
catch (err) { // eslint-disable-line | ||
if (err.code === 'ENOENT') { | ||
catch (err) { | ||
if (util_1.default.types.isNativeError(err) && 'code' in err && err.code === 'ENOENT') { | ||
await fs_1.promises.mkdir(destModulesDir, { recursive: true }); | ||
@@ -31,0 +32,0 @@ destModulesDirReal = await fs_1.promises.realpath(destModulesDir); |
{ | ||
"name": "@pnpm/symlink-dependency", | ||
"description": "Symlink a dependency to node_modules", | ||
"version": "7.1.4", | ||
"version": "8.0.0", | ||
"bugs": { | ||
@@ -18,4 +18,4 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"devDependencies": { | ||
"@pnpm/prepare": "0.0.87", | ||
"@pnpm/symlink-dependency": "7.1.4" | ||
"@pnpm/prepare": "0.0.90", | ||
"@pnpm/symlink-dependency": "8.0.0" | ||
}, | ||
@@ -27,3 +27,3 @@ "directories": { | ||
"keywords": [ | ||
"pnpm8", | ||
"pnpm9", | ||
"pnpm" | ||
@@ -33,3 +33,3 @@ ], | ||
"engines": { | ||
"node": ">=16.14" | ||
"node": ">=18.12" | ||
}, | ||
@@ -39,4 +39,4 @@ "repository": "https://github.com/pnpm/pnpm/blob/main/fs/symlink-dependency", | ||
"symlink-dir": "^5.2.1", | ||
"@pnpm/core-loggers": "9.0.6", | ||
"@pnpm/types": "9.4.2" | ||
"@pnpm/types": "10.0.0", | ||
"@pnpm/core-loggers": "10.0.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9309
1.68%92
1.1%+ Added
+ Added
- Removed
- Removed
Updated
Updated