From e75600fdc7590ef0b84838d71d288273d4c354c2 Mon Sep 17 00:00:00 2001 From: Hacker Club Date: Thu, 26 Feb 2026 06:01:06 -0800 Subject: [PATCH] fix: add missing properties type, imports, exports, maintainers to PackageJSON Adds the following missing properties to the PackageJSON interface: - type: package type (commonjs, module, etc.) - imports: import conditions for internal imports - exports: export conditions for the package - maintainers: package maintainers Closes #107 --- types/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index ac4432d..aa43360 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -117,13 +117,16 @@ export interface PackageJSON { devEngines?: DevEngines directories?: Record engines?: Record + exports?: Record | string | (Record | string)[] files?: string[] funding?: Funding | string | (Funding | string)[] homepage?: string + imports?: Record keywords?: string[] license?: string licenses?: DeprecatedLicense | DeprecatedLicense[] main?: string + maintainers?: Contact[] man?: string | string[] name: string optionalDependencies?: Record @@ -135,6 +138,7 @@ export interface PackageJSON { publishConfig?: Record repository?: Repository | string scripts?: Record + type?: string // https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html#editing-the-packagejson types?: string version: string