We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25992ea commit 0b6b7f7Copy full SHA for 0b6b7f7
apps/api-extractor/src/api/ExtractorConfig.ts
@@ -461,7 +461,9 @@ export class ExtractorConfig {
461
throw new Error('The "packageJsonFullPath" setting must be an absolute path');
462
}
463
464
- if (!options.packageJson) {
+ if (options.packageJson) {
465
+ packageJson = options.packageJson;
466
+ } else {
467
const packageJsonLookup: PackageJsonLookup = new PackageJsonLookup();
468
packageJson = packageJsonLookup.loadNodePackageJson(packageJsonFullPath);
469
0 commit comments