rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
16 lines (15 loc) • 647 B
TypeScript
/**
* Gets all source file paths by parsing tsconfig.json using TypeScript's compiler API.
* Falls back to a glob pattern if tsconfig parsing fails.
*
* @param rootDir - The root directory to search from (defaults to current working directory)
* @returns Promise<string[]> - Array of source file paths
*/
export declare function getSrcPaths(rootDir?: string): Promise<string[]>;
/**
* Synchronous version of getSrcPaths
*
* @param rootDir - The root directory to search from (defaults to current working directory)
* @returns string[] - Array of source file paths
*/
export declare function getSrcPathsSync(rootDir?: string): string[];