Package Exports
- types-package-json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (types-package-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
types-package-json
Table of contents
Getting Started
npm i -D types-package-json
Usage
import type { PackageJson } from 'types-package-json';
const packageJsonPath = path.resolve(process.cwd(), `package.json`);
const packageJson: Partial<PackageJson> = await import(packageJsonPath);
Features
Zero overhead - contains only types and interfaces, no actual objects. PackageJson - full package.json interface, name and version is required PackageJsonAddress - optional email and url PackageJsonPerson - required name, optional email and url PackageJsonDependencyTypes - 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies' (bundledDependencies are not included in this type as they serve different purpose).