@pnpm/local-resolver
Advanced tools
Comparing version 2.0.10 to 2.0.11
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("@pnpm/error"); | ||
const read_importer_manifest_1 = require("@pnpm/read-importer-manifest"); | ||
@@ -32,10 +33,6 @@ const fs = require("graceful-fs"); | ||
case 'ENOTDIR': { | ||
const err = new Error(`Could not install from "${spec.fetchSpec}" as it is not a directory.`); | ||
err['code'] = 'ERR_PNPM_NOT_PACKAGE_DIRECTORY'; // tslint:disable-line:no-string-literal | ||
throw err; | ||
throw new error_1.default('NOT_PACKAGE_DIRECTORY', `Could not install from "${spec.fetchSpec}" as it is not a directory.`); | ||
} | ||
case 'ENOENT': { | ||
const err = new Error(`Could not install from "${spec.fetchSpec}" as it does not contain a package.json file.`); | ||
err['code'] = 'ERR_PNPM_DIRECTORY_HAS_NO_PACKAGE_JSON'; // tslint:disable-line:no-string-literal | ||
throw err; | ||
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.`); | ||
} | ||
@@ -42,0 +39,0 @@ default: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("@pnpm/error"); | ||
const normalize = require("normalize-path"); | ||
@@ -25,6 +26,5 @@ const os = require("os"); | ||
if (pref.startsWith('path:')) { | ||
const err = new Error('Local dependencies via `path:` protocol are not supported. ' + | ||
const err = new error_1.default('PATH_IS_UNSUPPORTED_PROTOCOL', 'Local dependencies via `path:` protocol are not supported. ' + | ||
'Use the `link:` protocol for folder dependencies and `file:` for local tarballs'); | ||
// tslint:disable:no-string-literal | ||
err['code'] = 'ERR_PNPM_PATH_IS_UNSUPPORTED_PROTOCOL'; | ||
err['pref'] = pref; | ||
@@ -31,0 +31,0 @@ err['protocol'] = 'path:'; |
{ | ||
"name": "@pnpm/local-resolver", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Resolver for local packages", | ||
@@ -33,3 +33,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/read-importer-manifest": "1.0.5", | ||
"@pnpm/error": "1.0.0", | ||
"@pnpm/read-importer-manifest": "1.0.6", | ||
"@pnpm/resolver-base": "3.1.2", | ||
@@ -36,0 +37,0 @@ "@pnpm/types": "3.2.0", |
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
9395
7
7
168
+ Added@pnpm/error@1.0.0
+ Added@pnpm/error@1.0.0(transitive)
+ Added@pnpm/read-importer-manifest@1.0.6(transitive)
- Removed@pnpm/read-importer-manifest@1.0.5(transitive)