@pnpm/exportable-manifest
Advanced tools
Comparing version 1.1.0 to 1.2.0
# @pnpm/exportable-manifest | ||
## 1.2.0 | ||
### Minor Changes | ||
- c854f8547: Remove the "pnpm" property that stores pnpm settings from the manifest. | ||
## 1.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,42 +0,2 @@ | ||
import { Dependencies, ProjectManifest } from '@pnpm/types'; | ||
export default function makePublishManifest(dir: string, originalManifest: ProjectManifest): Promise<{ | ||
name?: string | undefined; | ||
version?: string | undefined; | ||
bin?: string | { | ||
[commandName: string]: string; | ||
} | undefined; | ||
description?: string | undefined; | ||
directories?: { | ||
bin?: string | undefined; | ||
} | undefined; | ||
dependencies?: Dependencies | undefined; | ||
devDependencies?: Dependencies | undefined; | ||
optionalDependencies?: Dependencies | undefined; | ||
peerDependencies?: Dependencies | undefined; | ||
peerDependenciesMeta?: import("@pnpm/types").PeerDependenciesMeta | undefined; | ||
bundleDependencies?: string[] | undefined; | ||
bundledDependencies?: string[] | undefined; | ||
homepage?: string | undefined; | ||
repository?: string | { | ||
url: string; | ||
} | undefined; | ||
scripts?: import("@pnpm/types").PackageScripts | undefined; | ||
config?: object | undefined; | ||
engines?: { | ||
node?: string | undefined; | ||
npm?: string | undefined; | ||
pnpm?: string | undefined; | ||
} | undefined; | ||
cpu?: string[] | undefined; | ||
os?: string[] | undefined; | ||
main?: string | undefined; | ||
module?: string | undefined; | ||
typings?: string | undefined; | ||
types?: string | undefined; | ||
publishConfig?: Record<string, unknown> | undefined; | ||
pnpm?: { | ||
overrides?: Record<string, string> | undefined; | ||
} | undefined; | ||
private?: boolean | undefined; | ||
resolutions?: Record<string, string> | undefined; | ||
}>; | ||
import { ProjectManifest } from '@pnpm/types'; | ||
export default function makePublishManifest(dir: string, originalManifest: ProjectManifest): Promise<Pick<ProjectManifest, "optionalDependencies" | "dependencies" | "devDependencies" | "private" | "name" | "version" | "bin" | "description" | "directories" | "peerDependencies" | "peerDependenciesMeta" | "bundleDependencies" | "bundledDependencies" | "homepage" | "repository" | "scripts" | "config" | "engines" | "cpu" | "os" | "main" | "module" | "typings" | "types" | "publishConfig" | "resolutions">>; |
@@ -27,5 +27,3 @@ "use strict"; | ||
async function makePublishManifest(dir, originalManifest) { | ||
const publishManifest = { | ||
...originalManifest, | ||
}; | ||
const publishManifest = R.omit(['pnpm'], originalManifest); | ||
for (const depsField of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) { | ||
@@ -32,0 +30,0 @@ const deps = await makePublishDependencies(dir, originalManifest[depsField]); |
{ | ||
"name": "@pnpm/exportable-manifest", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Creates an exportable manifest", | ||
@@ -15,6 +15,7 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts", | ||
"test": "pnpm run compile", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts", | ||
"test": "pnpm run compile && pnpm run _test", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build", | ||
"_test": "jest" | ||
}, | ||
@@ -32,9 +33,8 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/exportable-manifest", | ||
"devDependencies": { | ||
"@pnpm/exportable-manifest": "link:", | ||
"@types/ramda": "^0.27.32" | ||
"@types/ramda": "^0.27.35" | ||
}, | ||
"dependencies": { | ||
"@pnpm/error": "^1.4.0", | ||
"@pnpm/read-project-manifest": "^1.1.5", | ||
"@pnpm/types": "^6.3.1", | ||
"@pnpm/error": "1.4.0", | ||
"@pnpm/read-project-manifest": "1.1.5", | ||
"@pnpm/types": "6.3.1", | ||
"ramda": "^0.27.1" | ||
@@ -41,0 +41,0 @@ }, |
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
1
8006
88
+ Added@pnpm/read-project-manifest@1.1.5(transitive)
+ Added@pnpm/types@6.3.1(transitive)
+ Added@pnpm/write-project-manifest@1.1.5(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
- Removed@pnpm/read-project-manifest@1.1.7(transitive)
- Removed@pnpm/types@6.4.0(transitive)
- Removed@pnpm/write-project-manifest@1.1.7(transitive)
- Removedgraceful-fs@4.2.4(transitive)
Updated@pnpm/error@1.4.0
Updated@pnpm/types@6.3.1