(absoluteProjectPath: string)
| 297 | } |
| 298 | |
| 299 | export async function getPackageJson(absoluteProjectPath: string) { |
| 300 | const packageJsonPath = join(absoluteProjectPath, "package.json"); |
| 301 | |
| 302 | const readonlyPackageJson = Object.freeze((await readJSONFile(packageJsonPath)) as PackageJson); |
| 303 | |
| 304 | const packageJson = structuredClone(readonlyPackageJson); |
| 305 | |
| 306 | return { packageJson, readonlyPackageJson, packageJsonPath }; |
| 307 | } |
no test coverage detected
searching dependent graphs…