@pnpm/exportable-manifest
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -38,5 +38,5 @@ "use strict"; | ||
async function makePublishManifest(dir, originalManifest) { | ||
const publishManifest = omit_1.default(['pnpm', 'scripts'], originalManifest); | ||
const publishManifest = (0, omit_1.default)(['pnpm', 'scripts'], originalManifest); | ||
if (originalManifest.scripts != null) { | ||
publishManifest.scripts = omit_1.default(PREPUBLISH_SCRIPTS, originalManifest.scripts); | ||
publishManifest.scripts = (0, omit_1.default)(PREPUBLISH_SCRIPTS, originalManifest.scripts); | ||
} | ||
@@ -63,3 +63,3 @@ for (const depsField of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) { | ||
return dependencies; | ||
const publishDependencies = fromPairs_1.default(await Promise.all(Object.entries(dependencies) | ||
const publishDependencies = (0, fromPairs_1.default)(await Promise.all(Object.entries(dependencies) | ||
.map(async ([depName, depSpec]) => [ | ||
@@ -78,3 +78,3 @@ depName, | ||
if (versionAliasSpecParts != null) { | ||
const { manifest } = await read_project_manifest_1.tryReadProjectManifest(path_1.default.join(dir, 'node_modules', depName)); | ||
const { manifest } = await (0, read_project_manifest_1.tryReadProjectManifest)(path_1.default.join(dir, 'node_modules', depName)); | ||
if ((manifest == null) || !manifest.version) { | ||
@@ -91,3 +91,3 @@ throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + | ||
if (depSpec.startsWith('workspace:./') || depSpec.startsWith('workspace:../')) { | ||
const { manifest } = await read_project_manifest_1.tryReadProjectManifest(path_1.default.join(dir, depSpec.substr(10))); | ||
const { manifest } = await (0, read_project_manifest_1.tryReadProjectManifest)(path_1.default.join(dir, depSpec.substr(10))); | ||
if ((manifest == null) || !manifest.name || !manifest.version) { | ||
@@ -94,0 +94,0 @@ throw new error_1.default('CANNOT_RESOLVE_WORKSPACE_PROTOCOL', `Cannot resolve workspace protocol of dependency "${depName}" ` + |
{ | ||
"name": "@pnpm/exportable-manifest", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "Creates an exportable manifest", | ||
@@ -16,2 +16,3 @@ "main": "lib/index.js", | ||
"keywords": [ | ||
"pnpm6", | ||
"pnpm" | ||
@@ -29,4 +30,4 @@ ], | ||
"@pnpm/error": "2.0.0", | ||
"@pnpm/read-project-manifest": "2.0.5", | ||
"@pnpm/types": "7.4.0", | ||
"@pnpm/read-project-manifest": "2.0.6", | ||
"@pnpm/types": "7.5.0", | ||
"ramda": "^0.27.1" | ||
@@ -36,3 +37,3 @@ }, | ||
"scripts": { | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts", | ||
"lint": "eslint src/**/*.ts test/**/*.ts", | ||
"test": "pnpm run compile && pnpm run _test", | ||
@@ -39,0 +40,0 @@ "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
10151
1
+ Added@pnpm/read-project-manifest@2.0.6(transitive)
+ Added@pnpm/types@7.5.0(transitive)
+ Added@pnpm/write-project-manifest@2.0.5(transitive)
- Removed@pnpm/read-project-manifest@2.0.5(transitive)
- Removed@pnpm/types@7.4.0(transitive)
- Removed@pnpm/write-project-manifest@2.0.4(transitive)
Updated@pnpm/types@7.5.0