chore: Refactor build to simplify vite and esbuild

This commit is contained in:
Sidharth Vinod
2023-08-11 20:49:39 +05:30
parent 150d459a3d
commit edfc3933f9
11 changed files with 173 additions and 334 deletions

17
.build/common.ts Normal file
View File

@@ -0,0 +1,17 @@
export const packageOptions = {
mermaid: {
name: 'mermaid',
packageName: 'mermaid',
file: 'mermaid.ts',
},
'mermaid-example-diagram': {
name: 'mermaid-example-diagram',
packageName: 'mermaid-example-diagram',
file: 'detector.ts',
},
'mermaid-zenuml': {
name: 'mermaid-zenuml',
packageName: 'mermaid-zenuml',
file: 'detector.ts',
},
} as const;