fix: deploy should maintain type on new manifest (#9002)

This commit is contained in:
Richard Peach
2025-01-26 18:41:05 +00:00
committed by GitHub
parent 9a44e6ce87
commit b562debaf4
3 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-deploy": patch
"@pnpm/types": patch
---
Fix `pnpm deploy` creating a package.json without the `"type"` key [#8962](https://github.com/pnpm/pnpm/issues/8962).

View File

@@ -72,6 +72,7 @@ export interface TypesVersions {
export interface BaseManifest {
name?: string
version?: string
type?: string
bin?: PackageBin
description?: string
directories?: {

View File

@@ -29,6 +29,7 @@ const INHERITED_MANIFEST_KEYS = [
'version',
'private',
'author',
'type',
'bin',
'scripts',
'packageManager',