mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
fix(deploy): missing imports and license fields (#9199)
This commit is contained in:
7
.changeset/metal-olives-relax.md
Normal file
7
.changeset/metal-olives-relax.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-deploy": patch
|
||||
"@pnpm/types": patch
|
||||
pnpm: patch
|
||||
---
|
||||
|
||||
Fix `pnpm deploy` creating a `package.json` without the `imports` and `license` field [#9193](https://github.com/pnpm/pnpm/issues/9193).
|
||||
@@ -110,6 +110,7 @@ export interface BaseManifest {
|
||||
author?: string
|
||||
license?: string
|
||||
exports?: Record<string, string>
|
||||
imports?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export interface DependencyManifest extends BaseManifest {
|
||||
|
||||
@@ -35,6 +35,8 @@ const INHERITED_MANIFEST_KEYS = [
|
||||
'packageManager',
|
||||
'dependenciesMeta',
|
||||
'peerDependenciesMeta',
|
||||
'imports',
|
||||
'license',
|
||||
] as const satisfies Array<keyof ProjectManifest>
|
||||
|
||||
export type DeployManifest = Pick<ProjectManifest, typeof INHERITED_MANIFEST_KEYS[number] | DependenciesField | 'pnpm'>
|
||||
|
||||
Reference in New Issue
Block a user