@pnpm/exportable-manifest
Advanced tools
Comparing version 2.1.2 to 2.1.3
# @pnpm/exportable-manifest | ||
## 2.1.3 | ||
### Patch Changes | ||
- a1a03d145: Import only the required functions from ramda. | ||
## 2.1.2 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -28,3 +9,4 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"); | ||
const R = __importStar(require("ramda")); | ||
const fromPairs_1 = __importDefault(require("ramda/src/fromPairs")); | ||
const omit_1 = __importDefault(require("ramda/src/omit")); | ||
// property keys that are copied from publishConfig into the manifest | ||
@@ -57,5 +39,5 @@ const PUBLISH_CONFIG_WHITELIST = new Set([ | ||
async function makePublishManifest(dir, originalManifest) { | ||
const publishManifest = R.omit(['pnpm', 'scripts'], originalManifest); | ||
const publishManifest = omit_1.default(['pnpm', 'scripts'], originalManifest); | ||
if (originalManifest.scripts != null) { | ||
publishManifest.scripts = R.omit(PREPUBLISH_SCRIPTS, originalManifest.scripts); | ||
publishManifest.scripts = omit_1.default(PREPUBLISH_SCRIPTS, originalManifest.scripts); | ||
} | ||
@@ -82,3 +64,3 @@ for (const depsField of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) { | ||
return dependencies; | ||
const publishDependencies = R.fromPairs(await Promise.all(Object.entries(dependencies) | ||
const publishDependencies = fromPairs_1.default(await Promise.all(Object.entries(dependencies) | ||
.map(async ([depName, depSpec]) => [ | ||
@@ -85,0 +67,0 @@ depName, |
{ | ||
"name": "@pnpm/exportable-manifest", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Creates an exportable manifest", | ||
@@ -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
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
12550
104