@rushstack/package-extractor
Version:
A library for bundling selected files and dependencies into a deployable package.
30 lines • 1.37 kB
TypeScript
import { type ITerminal } from '@rushstack/terminal';
export declare function matchesWithStar(patternWithStar: string, input: string): boolean;
export interface IRemapPathForTargetFolder {
sourcePath: string;
sourceRootFolder: string;
targetRootFolder: string;
}
/**
* Maps a file path under the provided {@link IRemapPathForTargetFolder.sourceRootFolder} to the provided
* {@link IExtractorOptions.targetRootFolder}.
*
* Example input: "C:\\MyRepo\\libraries\\my-lib"
* Example output: "C:\\MyRepo\\common\\deploy\\libraries\\my-lib"
*/
export declare function remapSourcePathForTargetFolder(options: IRemapPathForTargetFolder): string;
/**
* Maps a file path under the provided folder path to the expected path format for the extractor metadata.
*
* Example input: "C:\\MyRepo\\libraries\\my-lib"
* Example output: "common/deploy/libraries/my-lib"
*/
export declare function remapPathForExtractorMetadata(folderPath: string, filePath: string): string;
/**
* Creates the .bin files for the extracted projects and returns the paths to the created .bin files.
*
* @param terminal - The terminal to write to
* @param extractedProjectFolderPaths - The paths to the extracted projects
*/
export declare function makeBinLinksAsync(terminal: ITerminal, extractedProjectFolderPaths: string[]): Promise<string[]>;
//# sourceMappingURL=Utils.d.ts.map