export interface RestoreWorkspacePackagesOptions { backendDir?: string; prodDir: string; workspaceRoot?: string; } /** * Node's --experimental-strip-types refuses to load TypeScript whose real path * contains a node_modules segment, but pnpm deploy places workspace packages * (shipped as TypeScript source) inside the virtual store at * node_modules/.pnpm//node_modules/. * * Relocate every workspace-package copy outside node_modules while preserving * pnpm's resolution topology, without enumerating dependencies: * * - move the content dir to workspace-packages// * - leave a relative symlink at the original virtual-store location, so every * pnpm-created link (top-level node_modules entries, sibling links from other * store dirs) keeps resolving through it * - add a node_modules backlink inside the moved dir pointing at the package's * original virtual-store sibling directory, so the package's own imports * resolve exactly as pnpm laid them out */ export declare function restoreDeployedWorkspacePackages({ backendDir, prodDir, workspaceRoot, }: RestoreWorkspacePackagesOptions): void; interface RestoreCliOptions { args: readonly string[]; env: NodeJS.ProcessEnv; isMain: boolean; restore?: typeof restoreDeployedWorkspacePackages; } export declare function runRestoreDeployedWorkspacePackagesCli({ args, env, isMain, restore, }: RestoreCliOptions): void; export {};