From 533830172c9b273c77488d63253c60dd1dac8b27 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 7 Mar 2023 09:38:51 +0530 Subject: [PATCH 1/3] Add UMD back --- .vite/build.ts | 6 ++++++ packages/mermaid/package.json | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.vite/build.ts b/.vite/build.ts index 268db3270..e3c947173 100644 --- a/.vite/build.ts +++ b/.vite/build.ts @@ -62,6 +62,12 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions) sourcemap: true, entryFileNames: `${name}.esm${minify ? '.min' : ''}.mjs`, }, + { + name, + format: 'umd', + sourcemap: true, + entryFileNames: `${name}${minify ? '.min' : ''}.js`, + }, ]; if (core) { diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index e40912c29..190d9e783 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,14 +1,16 @@ { "name": "mermaid", - "version": "10.0.2", + "version": "10.0.3-alpha.1", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", + "main": "./dist/mermaid.min.js", "module": "./dist/mermaid.core.mjs", "types": "./dist/mermaid.d.ts", "exports": { ".": { "types": "./dist/mermaid.d.ts", "import": "./dist/mermaid.core.mjs", + "require": "./dist/mermaid.js", "default": "./dist/mermaid.core.mjs" }, "./*": "./*" @@ -106,8 +108,11 @@ "vitepress-plugin-search": "^1.0.4-alpha.19" }, "files": [ - "dist", + "dist/", "README.md" ], - "sideEffects": false + "sideEffects": false, + "publishConfig": { + "access": "public" + } } From 24c9506935d353eaea8f234c9f8ab910b284bbfe Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 5 Apr 2023 22:07:46 +0530 Subject: [PATCH 2/3] fix version --- packages/mermaid/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index fc789e292..5f7978844 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "mermaid", - "version": "10.0.3-alpha.1", + "version": "10.1.0", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", "main": "./dist/mermaid.min.js", From 562514964efd2df1fedf891030358328de918eb9 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 23 Apr 2023 15:49:20 +0530 Subject: [PATCH 3/3] Update packages/mermaid/package.json Co-authored-by: Alois Klink --- packages/mermaid/package.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index 3acba5e78..f68d7e6f0 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -3,14 +3,12 @@ "version": "10.1.0", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", - "main": "./dist/mermaid.min.js", "module": "./dist/mermaid.core.mjs", "types": "./dist/mermaid.d.ts", "exports": { ".": { "types": "./dist/mermaid.d.ts", "import": "./dist/mermaid.core.mjs", - "require": "./dist/mermaid.js", "default": "./dist/mermaid.core.mjs" }, "./*": "./*"