Skip to content

Commit a82b636

Browse files
committed
types: funding field is optional
1 parent 616704d commit a82b636

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/packagejson/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface PackageJson {
8484
* about ways to help fund development of your package,
8585
* a string URL, or an array of objects and string URLs
8686
*/
87-
funding: PackageJsonFunding | PackageJsonFunding[];
87+
funding?: PackageJsonFunding | PackageJsonFunding[];
8888

8989
/**
9090
* The optional `files` field is an array of file patterns that describes the entries to be included when your package is installed as a dependency. File patterns follow a similar syntax to `.gitignore`, but reversed: including a file, directory, or glob pattern (`*`, `**\/*`, and such) will make it so that file is included in the tarball when it’s packed. Omitting the field will make it default to `["*"]`, which means it will include all files.

0 commit comments

Comments
 (0)