@stacksjs/launchpad
Version:
Like Homebrew, but faster.
25 lines • 965 B
TypeScript
export declare function sniff(dir: SimplePath | { string: string }): Promise<{ pkgs: PackageRequirement[], env: Record<string, string>, services?: { enabled?: boolean, autoStart?: string[] } }>;
export declare const _internals: { validateDollarSignUsage: typeof validateDollarSignUsage };
export declare interface PackageRequirement {
project: string
constraint: SemverRange
global?: boolean
source?: 'explicit' | 'inferred'
}
export declare class SemverRange {
private range: string;
constructor(range: string);
toString(): string;
satisfies(version: string): boolean;
}
// Simple Path replacement for libpkgx Path
declare class SimplePath {
string: string;
constructor(path: string);
isDirectory(): boolean;
read(): Promise<string>;
readYAML(): Promise<any>;
readYAMLAll(): Promise<any[]>;
ls(): AsyncGenerator<[SimplePath, { name: string, isFile: boolean, isSymlink: boolean, isDirectory: boolean }]>;
static home(): SimplePath;
}