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

This commit is contained in:
Richard Peach authored and GitHub committed 2025-01-26 19:41:05 +01:00
1 parent 9a44e6ce87
commit b562debaf4
3 files changed
+8

No files matched your search

+6
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).
+1
View File
@@ -72,6 +72,7 @@ export interface TypesVersions {
export interface BaseManifest {
name?: string
version?: string
type?: string
bin?: PackageBin
description?: string
directories?: {
@@ -29,6 +29,7 @@ const INHERITED_MANIFEST_KEYS = [
'version',
'private',
'author',
'type',
'bin',
'scripts',
'packageManager',