You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
import { IRebuilder } from './types';
|
|
export declare class ModuleRebuilder {
|
|
private modulePath;
|
|
private nodeGyp;
|
|
private rebuilder;
|
|
private prebuildify;
|
|
private prebuildInstall;
|
|
private nodePreGyp;
|
|
constructor(rebuilder: IRebuilder, modulePath: string);
|
|
get metaPath(): string;
|
|
get metaData(): string;
|
|
alreadyBuiltByRebuild(): Promise<boolean>;
|
|
cacheModuleState(cacheKey: string): Promise<void>;
|
|
/**
|
|
* Whether a prebuild-install-generated native module exists.
|
|
*/
|
|
prebuildInstallNativeModuleExists(): Promise<boolean>;
|
|
/**
|
|
* If the native module uses prebuildify, check to see if it comes with a prebuilt module for
|
|
* the given platform and arch.
|
|
*/
|
|
findPrebuildifyModule(cacheKey: string): Promise<boolean>;
|
|
findPrebuildInstallModule(cacheKey: string): Promise<boolean>;
|
|
findNodePreGypInstallModule(cacheKey: string): Promise<boolean>;
|
|
rebuildNodeGypModule(cacheKey: string): Promise<boolean>;
|
|
replaceExistingNativeModule(): Promise<void>;
|
|
writeMetadata(): Promise<void>;
|
|
rebuild(cacheKey: string): Promise<boolean>;
|
|
}
|