Skip to content

Commit

Permalink
fix(utils): pkg json interface
Browse files Browse the repository at this point in the history
  • Loading branch information
liquan committed Sep 10, 2024
1 parent 4939e07 commit 5415f2c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/utils/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export interface PkgJSON {
version?: string
private?: boolean
description?: string
keywords?: string[]
homepage?: string
bugs?: {
url: string
}
repository?: {
type: string
url: string
Expand All @@ -31,18 +36,19 @@ export interface PkgJSON {
module?: string
browser?: string
types?: string
bin?: Record<string, string> | string
files?: string[]
scripts?: Record<string, string>
// eslint-disable-next-line @typescript-eslint/naming-convention
'lint-staged'?: Record<string, string>
'lint-staged'?: Record<string, string | string[]>
dependencies?: Record<string, string>
devDependencies?: Record<string, string>
peerDependencies?: Record<string, string>
publishConfig?: {
registry: string
[properName: string]: string
}
engines?: {
node: string
[properName: string]: string
}
workspaces?: string[]
Expand Down

0 comments on commit 5415f2c

Please # to comment.