@pnpm/exportable-manifest
Advanced tools
Comparing version 2.0.0 to 2.0.1
# @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 @@ |
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", |
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
12421
7
117