Skip to content

Commit

Permalink
fix: add imports field to the types (resolves #160)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 18, 2024
1 parent 44956cc commit 21f99e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/packagejson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ export interface PackageJson {
"import" | "require" | "." | "node" | "browser" | string,
string | Record<"import" | "require" | string, string>
>;
/**
* Docs:
* - https://nodejs.org/api/packages.html#imports
*/
imports?: Record<string, string | Record<string, string>>;
/**
* The optional engines field is used to specify the versions of npm and node that your stuff works on.
*/
Expand Down

0 comments on commit 21f99e8

Please sign in to comment.