Skip to content

Commit

Permalink
fix: add missing scripts key and allow extensibility (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 20, 2022
1 parent d30062c commit 453d375
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/types/packagejson.ts
Expand Up @@ -13,12 +13,12 @@ export interface PackageJson {
/**
* The name is what your thing is called.
* Some rules:
- The name must be less than or equal to 214 characters. This includes the scope for scoped packages.
- The name can’t start with a dot or an underscore.
- New packages must not have uppercase letters in the name.
- The name ends up being part of a URL, an argument on the command line, and a folder name. Therefore, the name can’t contain any non-URL-safe characters.
*/
name?: string
/**
Expand Down Expand Up @@ -63,6 +63,7 @@ export interface PackageJson {
*/
directory?: string
}
scripts?: Record<string, string>
/**
* If you set `"private": true` in your package.json, then npm will refuse to publish it.
*/
Expand Down Expand Up @@ -152,4 +153,5 @@ export interface PackageJson {
string | Record<'import' | 'require' | string, string>
>
workspaces?: string[]
[key: string]: any
}

0 comments on commit 453d375

Please sign in to comment.