chore: Fix outfile names

This commit is contained in:
Sidharth Vinod
2023-08-14 08:52:56 +05:30
parent 5c2a6b5eb1
commit 4fd7a88a15
3 changed files with 3 additions and 2 deletions

View File

@@ -42,8 +42,7 @@ const buildOptions = (override: BuildOptions): BuildOptions => {
const getFileName = (fileName: string, { core, format, minify }: MermaidBuildOptions) => { const getFileName = (fileName: string, { core, format, minify }: MermaidBuildOptions) => {
if (core) { if (core) {
fileName += '.core'; fileName += '.core';
} } else if (format === 'esm') {
if (format === 'esm') {
fileName += '.esm'; fileName += '.esm';
} }
if (minify) { if (minify) {

View File

@@ -94,6 +94,7 @@
"nikolay", "nikolay",
"nirname", "nirname",
"orlandoni", "orlandoni",
"outdir",
"pathe", "pathe",
"pbrolin", "pbrolin",
"phpbb", "phpbb",

View File

@@ -19,6 +19,7 @@
"mermaid" "mermaid"
], ],
"scripts": { "scripts": {
"clean": "rimraf dist",
"prepublishOnly": "pnpm -w run build" "prepublishOnly": "pnpm -w run build"
}, },
"repository": { "repository": {