diff --git a/.changeset/funny-goats-crash.md b/.changeset/funny-goats-crash.md new file mode 100644 index 00000000..cadb718d --- /dev/null +++ b/.changeset/funny-goats-crash.md @@ -0,0 +1,5 @@ +--- +"@nodesecure/npm-types": patch +--- + +fix package.json Node.js type by replacing literal value script with commonjs diff --git a/workspaces/npm-types/src/index.d.ts b/workspaces/npm-types/src/index.d.ts index f0cd908b..5b3422db 100644 --- a/workspaces/npm-types/src/index.d.ts +++ b/workspaces/npm-types/src/index.d.ts @@ -115,7 +115,7 @@ interface BasePackageJSON { * Node.js package.json field definitions */ main?: string; - type?: "script" | "module"; + type?: "commonjs" | "module"; packageManager?: string; imports?: Record<`#${string}`, string | NodeImport>; exports?: string | NodeExport;