| 9 | import { DEFAULT_MANIFEST_VERSION } from "../shared/constants.js"; |
| 10 | |
| 11 | interface PackageJson { |
| 12 | name?: string; |
| 13 | version?: string; |
| 14 | description?: string; |
| 15 | main?: string; |
| 16 | author?: string | { name?: string; email?: string; url?: string }; |
| 17 | repository?: string | { type?: string; url?: string }; |
| 18 | license?: string; |
| 19 | } |
| 20 | |
| 21 | export function readPackageJson(dirPath: string): PackageJson { |
| 22 | const packageJsonPath = join(dirPath, "package.json"); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…