Skip to content

Commit

Permalink
fix: fix api extractor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
EscapeB committed Jul 28, 2023
1 parent ff6135c commit 99947bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions libraries/package-extractor/src/PackageExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ export interface IExtractorProjectConfiguration {
dependenciesToExclude?: string[];
}

/**
* The extractor configuration for individual dependencies.
*
* @public
*/
export interface IExtractorDependencyConfiguration {
/**
* The name of dependency
Expand Down
6 changes: 3 additions & 3 deletions libraries/package-extractor/src/tests/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import path from 'path';
import { FileSystem, JsonFile } from '@rushstack/node-core-library';
interface RushProject {
interface IRushProject {
packageName: string;
projectFolder: string;
}
export const loadRushProjectFromConfigurationFile = (filepath: string): RushProject[] => {
export const loadRushProjectFromConfigurationFile = (filepath: string): IRushProject[] => {
if (!FileSystem.exists(filepath) || !filepath.endsWith('rush.json')) {
throw new Error('File not exist or not correct');
}

const rushConfig: {
projects: RushProject[];
projects: IRushProject[];
} = JsonFile.parseString(FileSystem.readFile(filepath).toString());
return rushConfig.projects.map((p) => {
return {
Expand Down

0 comments on commit 99947bb

Please sign in to comment.