chore: Decouple build logic

This commit is contained in:
Sidharth Vinod
2024-10-03 23:15:42 +05:30
parent 463ba6ed6d
commit 76138cf3b9
3 changed files with 22 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
export interface PackageOptions {
name: string;
packageName: string;
file: string;
}
/**
* Shared common options for both ESBuild and Vite
*/
@@ -27,4 +33,4 @@ export const packageOptions = {
packageName: 'mermaid-layout-elk',
file: 'layouts.ts',
},
} as const;
} as const satisfies Record<string, PackageOptions>;