@bomb.sh/tools
Version:
The internal dev, build, and lint CLI for Bombshell projects
26 lines (25 loc) • 1.04 kB
text/typescript
import { CommandContext } from "../context.mjs";
//#region src/commands/sync.d.ts
declare function sync(_ctx: CommandContext): Promise<void>;
interface SkillInfo {
name: string;
description: string;
}
declare function copySkills(options: {
source: URL;
dest: URL;
}): Promise<SkillInfo[]>;
/**
* Locate the consuming project's package.json. The project root must come
* from where the command was invoked, never from this package's physical
* location: under pnpm's isolated layout, import.meta.url resolves through
* the node_modules symlink into node_modules/.pnpm/<hash>/, and walking up
* from there lands in the store, not the user's project. INIT_CWD (set by
* pnpm/npm to the directory the script was run from) is preferred because
* package scripts may rewrite cwd. Returns null when no project is found or
* when invoked inside @bomb.sh/tools itself.
*/
declare function findParentPackage(): Promise<string | null>;
//#endregion
export { copySkills, findParentPackage, sync };
//# sourceMappingURL=sync.d.mts.map