X Tutup
Skip to content

Commit 0b6b7f7

Browse files
committed
Fix handling of packageJson option
1 parent 25992ea commit 0b6b7f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api-extractor/src/api/ExtractorConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,9 @@ export class ExtractorConfig {
461461
throw new Error('The "packageJsonFullPath" setting must be an absolute path');
462462
}
463463

464-
if (!options.packageJson) {
464+
if (options.packageJson) {
465+
packageJson = options.packageJson;
466+
} else {
465467
const packageJsonLookup: PackageJsonLookup = new PackageJsonLookup();
466468
packageJson = packageJsonLookup.loadNodePackageJson(packageJsonFullPath);
467469
}

0 commit comments

Comments
 (0)
X Tutup