@stacksjs/launchpad
Version:
Like Homebrew, but faster.
33 lines • 1.73 kB
TypeScript
/**
* Create version symlinks like pkgx: v1 -> v1.3.1, v* -> v1.3.1
*/
export declare function createVersionSymlinks(installPath: string, domain: string, version: string): Promise<void>;
/**
* Create shims in bin directory that point to the actual binaries
*/
export declare function createShims(packageDir: string, installPath: string, domain: string, version: string): Promise<string[]>;
/**
* Create version compatibility symlinks for packages that expect different version paths
* This handles cases where a package built for openssl.org/v1 needs to work with openssl.org/v3
*/
export declare function createVersionCompatibilitySymlinks(installPath: string, domain: string, version: string): Promise<void>;
/**
* Create common library symlinks for better compatibility
* Many packages expect generic library names but we install versioned ones
*/
export declare function createLibrarySymlinks(packageDir: string, domain: string): Promise<void>;
/**
* Validate if a package installation is complete
* A package is considered incomplete if it's a library package but only has bin/ and no lib/
*/
export declare function validatePackageInstallation(packageDir: string, domain: string): Promise<boolean>;
/**
* Create a comprehensive environment setup script for build tools
* This script can be sourced to set up all launchpad-installed packages for building
*/
export declare function createBuildEnvironmentScript(installPath: string): Promise<void>;
/**
* Create pkg-config symlinks for common naming mismatches
* This handles cases where build scripts expect different package names than what's installed
*/
export declare function createPkgConfigSymlinks(packageDir: string, domain: string): Promise<void>;