24 lines
656 B
JavaScript
24 lines
656 B
JavaScript
/**
|
|
* Factory functions for creating cube configurations
|
|
* @module cubes/factories
|
|
*/
|
|
import { Manifest } from './types.js';
|
|
/**
|
|
* Creates a manifest configuration for a cube
|
|
*
|
|
* @param opts - Manifest options including name, schema, dependencies, and hooks
|
|
* @returns Manifest configuration object
|
|
*/
|
|
export function createManifest(opts) {
|
|
return Manifest(opts);
|
|
}
|
|
/**
|
|
* Alias for createManifest - for backwards compatibility with existing manifests
|
|
*/
|
|
export const manifest = createManifest;
|
|
/**
|
|
* @deprecated Use createManifest or manifest instead
|
|
*/
|
|
export const ManifestFactory = createManifest;
|
|
export { Manifest } from './types.js';
|