Socket
Socket
Sign inDemoInstall

@pnpm/exportable-manifest

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/exportable-manifest - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

lib/index.js.map

6

CHANGELOG.md
# @pnpm/exportable-manifest
## 2.0.1
### Patch Changes
- 561276d2c: Remove publish lifecycle events from manifest to avoid npm running them.
## 2.0.0

@@ -4,0 +10,0 @@

2

lib/index.d.ts
import { ProjectManifest } from '@pnpm/types';
export default function makePublishManifest(dir: string, originalManifest: ProjectManifest): Promise<Omit<ProjectManifest, "pnpm">>;
export default function makePublishManifest(dir: string, originalManifest: ProjectManifest): Promise<ProjectManifest>;

@@ -45,4 +45,15 @@ "use strict";

]);
const PREPUBLISH_SCRIPTS = [
'prepublishOnly',
'prepack',
'prepare',
'postpack',
'publish',
'postpublish',
];
async function makePublishManifest(dir, originalManifest) {
const publishManifest = R.omit(['pnpm'], originalManifest);
const publishManifest = R.omit(['pnpm', 'scripts'], originalManifest);
if (originalManifest.scripts != null) {
publishManifest.scripts = R.omit(PREPUBLISH_SCRIPTS, originalManifest.scripts);
}
for (const depsField of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) {

@@ -49,0 +60,0 @@ const deps = await makePublishDependencies(dir, originalManifest[depsField]);

{
"name": "@pnpm/exportable-manifest",
"version": "2.0.0",
"version": "2.0.1",
"description": "Creates an exportable manifest",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc