@basictech/cli
Version:
Basic CLI for creating & managing your projects
29 lines • 993 B
TypeScript
import type { Schema } from './types';
export interface SchemaFileResult {
schema: Schema;
projectId: string;
filePath: string;
}
/**
* Read schema from local config files
* Supports basic.config.ts, basic.config.js, and basic.config.json
*/
export declare function readSchemaFromConfig(targetDir?: string): Promise<SchemaFileResult | null>;
/**
* Extract schema object from TypeScript/JavaScript code using proper parsing
*/
export declare function extractSchemaFromCode(content: string): Schema;
/**
* Save schema to config file
*/
export declare function saveSchemaToConfig(schema: Schema, targetDir?: string): Promise<string>;
/**
* Check if schema versions are different
*/
export declare function compareVersions(local: Schema, remote: Schema): {
status: 'current' | 'ahead' | 'behind' | 'equal';
localVersion: number;
remoteVersion: number;
};
export declare function parseSchemaFile(filePath: string): Promise<any>;
//# sourceMappingURL=schema.d.ts.map