@pnpm/exportable-manifest
Advanced tools
Comparing version 3.1.6 to 4.0.0
@@ -6,2 +6,2 @@ import { ProjectManifest } from '@pnpm/types'; | ||
} | ||
export default function makePublishManifest(dir: string, originalManifest: ProjectManifest, opts?: MakePublishManifestOptions): Promise<ProjectManifest>; | ||
export declare function createExportableManifest(dir: string, originalManifest: ProjectManifest, opts?: MakePublishManifestOptions): Promise<ProjectManifest>; |
@@ -6,4 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createExportableManifest = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const error_1 = require("@pnpm/error"); | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"); | ||
@@ -21,3 +22,3 @@ const fromPairs_1 = __importDefault(require("ramda/src/fromPairs")); | ||
]; | ||
async function makePublishManifest(dir, originalManifest, opts) { | ||
async function createExportableManifest(dir, originalManifest, opts) { | ||
const publishManifest = (0, omit_1.default)(['pnpm', 'scripts'], originalManifest); | ||
@@ -39,3 +40,3 @@ if (originalManifest.scripts != null) { | ||
} | ||
exports.default = makePublishManifest; | ||
exports.createExportableManifest = createExportableManifest; | ||
async function makePublishDependencies(dir, dependencies, modulesDir) { | ||
@@ -61,3 +62,3 @@ if (dependencies == null) | ||
if ((manifest == null) || !manifest.version) { | ||
throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + | ||
throw new error_1.PnpmError('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + | ||
'because this dependency is not installed. Try running "pnpm install".'); | ||
@@ -74,3 +75,3 @@ } | ||
if ((manifest == null) || !manifest.name || !manifest.version) { | ||
throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + | ||
throw new error_1.PnpmError('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + | ||
'because this dependency is not installed. Try running "pnpm install".'); | ||
@@ -77,0 +78,0 @@ } |
{ | ||
"name": "@pnpm/exportable-manifest", | ||
"version": "3.1.6", | ||
"version": "4.0.0", | ||
"description": "Creates an exportable manifest", | ||
@@ -25,8 +25,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/exportable-manifest": "3.1.6", | ||
"@pnpm/exportable-manifest": "4.0.0", | ||
"@types/ramda": "0.28.15" | ||
}, | ||
"dependencies": { | ||
"@pnpm/error": "3.1.0", | ||
"@pnpm/read-project-manifest": "3.0.13", | ||
"@pnpm/error": "4.0.0", | ||
"@pnpm/read-project-manifest": "4.0.0", | ||
"@pnpm/types": "8.7.0", | ||
@@ -33,0 +33,0 @@ "ramda": "npm:@pnpm/ramda@0.28.1" |
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
12451
137
+ Added@pnpm/error@4.0.0(transitive)
+ Added@pnpm/read-project-manifest@4.0.0(transitive)
+ Added@pnpm/write-project-manifest@4.0.0(transitive)
- Removed@pnpm/error@3.1.0(transitive)
- Removed@pnpm/read-project-manifest@3.0.13(transitive)
- Removed@pnpm/write-project-manifest@3.0.10(transitive)
Updated@pnpm/error@4.0.0