[I] PackageJson
Type for package.json https://docs.npmjs.com/cli/configuring-npm/package-json
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
bugs? | object | Locations where package users can report issues. |
bugs.email? | string | Email address for issue reports. |
bugs.url? | string | Issue tracker URL. |
dependencies? | Record<string, string> | Runtime dependency names mapped to package version ranges or other dependency specifiers. |
description? | string | Package description |
devDependencies? | Record<string, string> | Dependencies used to develop, build, or test this package. |
devEngines? | DevEngines | Development-environment requirements and mismatch policies recorded in the manifest. |
exports? | Exports | null | Subpath exports to define entry points of the package. Read more. |
homepage? | string | URL of the package’s home page. |
imports? | Imports | null | Subpath imports to define private mappings for imports within the package itself. Read more. |
main? | string | Legacy JavaScript entry point relative to the package root. |
name | string | Package name |
packageManager? | string | Package-manager name and version recorded by the project, such as pnpm@10.0.0. |
peerDependencies? | Record<string, string> | Compatible dependency versions expected to be supplied by the consuming project. |
private? | boolean | Whether the package is marked as non-publishable. |
repository? | string | Repository | Source repository location, either as a shorthand string or structured metadata. |
tspMain? | string | TypeSpec entry point relative to the package root. |
type? | "module" | "commonjs" | Default module interpretation for JavaScript files in the package. |
version? | string | Package version |