@pnpm/local-resolver
Advanced tools
Comparing version 6.0.5 to 6.1.0
@@ -6,2 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs_1 = require("fs"); | ||
const path_1 = __importDefault(require("path")); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
@@ -36,2 +38,5 @@ const graceful_fs_1 = __importDefault(require("@pnpm/graceful-fs")); | ||
catch (internalErr) { | ||
if (!fs_1.existsSync(spec.fetchSpec)) { | ||
throw new error_1.default('LINKED_PKG_DIR_NOT_FOUND', `Could not install from "${spec.fetchSpec}" as it does not exist.`); | ||
} | ||
switch (internalErr.code) { | ||
@@ -41,4 +46,9 @@ case 'ENOTDIR': { | ||
} | ||
case 'ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND': | ||
case 'ENOENT': { | ||
throw new error_1.default('DIRECTORY_HAS_NO_PACKAGE_JSON', `Could not install from "${spec.fetchSpec}" as it does not contain a package.json file.`); | ||
localDependencyManifest = { | ||
name: path_1.default.basename(spec.fetchSpec), | ||
version: '0.0.0', | ||
}; | ||
break; | ||
} | ||
@@ -45,0 +55,0 @@ default: { |
{ | ||
"name": "@pnpm/local-resolver", | ||
"version": "6.0.5", | ||
"version": "6.1.0", | ||
"description": "Resolver for local packages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
14707
177
2