From 0095a28eeea0126c8712255df84614597b8fe8c3 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sun, 12 Jun 2022 12:55:55 +0800 Subject: [PATCH] build: move to dependencies for esm --- packages/bytemd/package.json | 8 ++++---- packages/plugin-breaks/package.json | 6 ++++-- packages/plugin-frontmatter/package.json | 6 ++++-- packages/plugin-gemoji/package.json | 6 ++++-- packages/plugin-gfm/package.json | 6 ++++-- packages/plugin-highlight-ssr/package.json | 5 ++--- packages/plugin-math-ssr/package.json | 6 ++++-- packages/plugin-math/package.json | 8 ++++---- packages/plugin-mermaid/package.json | 2 +- 9 files changed, 31 insertions(+), 22 deletions(-) diff --git a/packages/bytemd/package.json b/packages/bytemd/package.json index 0369d67..e197c65 100644 --- a/packages/bytemd/package.json +++ b/packages/bytemd/package.json @@ -38,12 +38,9 @@ "test": "tsdv test" }, "dependencies": { - "@types/codemirror": "^5.60.5" - }, - "devDependencies": { "@icon-park/svg": "^1.4.0", "@popperjs/core": "^2.11.5", - "@primer/css": "^15.2.0", + "@types/codemirror": "^5.60.5", "@types/hast": "^2.3.4", "@types/lodash-es": "^4.17.6", "@types/mdast": "^3.0.10", @@ -61,5 +58,8 @@ "unist-util-visit": "^4.1.0", "vfile": "^5.3.2", "word-count": "^0.2.2" + }, + "devDependencies": { + "@primer/css": "^15.2.0" } } diff --git a/packages/plugin-breaks/package.json b/packages/plugin-breaks/package.json index 87350d8..5f248ac 100644 --- a/packages/plugin-breaks/package.json +++ b/packages/plugin-breaks/package.json @@ -29,10 +29,12 @@ "build": "tsdv build", "test": "tsdv test" }, - "devDependencies": { - "bytemd": "workspace:*", + "dependencies": { "remark-breaks": "^3.0.2" }, + "devDependencies": { + "bytemd": "workspace:*" + }, "peerDependencies": { "bytemd": "^1.5.0" } diff --git a/packages/plugin-frontmatter/package.json b/packages/plugin-frontmatter/package.json index aa06a3f..fc463a7 100644 --- a/packages/plugin-frontmatter/package.json +++ b/packages/plugin-frontmatter/package.json @@ -29,13 +29,15 @@ "build": "tsdv build", "test": "tsdv test" }, - "devDependencies": { + "dependencies": { "@types/js-yaml": "^4.0.5", - "bytemd": "workspace:*", "js-yaml": "^4.1.0", "remark-frontmatter": "^4.0.1", "vfile": "^5.3.2" }, + "devDependencies": { + "bytemd": "workspace:*" + }, "peerDependencies": { "bytemd": "^1.5.0" } diff --git a/packages/plugin-gemoji/package.json b/packages/plugin-gemoji/package.json index 4fedd45..c3c4744 100644 --- a/packages/plugin-gemoji/package.json +++ b/packages/plugin-gemoji/package.json @@ -29,10 +29,12 @@ "build": "tsdv build", "test": "tsdv test" }, - "devDependencies": { - "bytemd": "workspace:*", + "dependencies": { "remark-gemoji": "^7.0.1" }, + "devDependencies": { + "bytemd": "workspace:*" + }, "peerDependencies": { "bytemd": "^1.5.0" } diff --git a/packages/plugin-gfm/package.json b/packages/plugin-gfm/package.json index ca52f5f..16498e3 100644 --- a/packages/plugin-gfm/package.json +++ b/packages/plugin-gfm/package.json @@ -29,11 +29,13 @@ "build": "tsdv build", "test": "tsdv test" }, - "devDependencies": { + "dependencies": { "@icon-park/svg": "^1.4.0", - "bytemd": "workspace:*", "remark-gfm": "^3.0.1" }, + "devDependencies": { + "bytemd": "workspace:*" + }, "peerDependencies": { "bytemd": "^1.5.0" } diff --git a/packages/plugin-highlight-ssr/package.json b/packages/plugin-highlight-ssr/package.json index eef799d..7101a5a 100644 --- a/packages/plugin-highlight-ssr/package.json +++ b/packages/plugin-highlight-ssr/package.json @@ -30,11 +30,10 @@ "test": "tsdv test" }, "dependencies": { - "highlight.js": "^11.5.1" + "rehype-highlight": "^5.0.2" }, "devDependencies": { - "bytemd": "workspace:*", - "rehype-highlight": "^5.0.2" + "bytemd": "workspace:*" }, "peerDependencies": { "bytemd": "^1.5.0" diff --git a/packages/plugin-math-ssr/package.json b/packages/plugin-math-ssr/package.json index aaecfc6..820f043 100644 --- a/packages/plugin-math-ssr/package.json +++ b/packages/plugin-math-ssr/package.json @@ -29,12 +29,14 @@ "build": "tsdv build", "test": "tsdv test" }, - "devDependencies": { + "dependencies": { "@icon-park/svg": "^1.4.0", - "bytemd": "workspace:*", "rehype-katex": "^6.0.2", "remark-math": "^5.1.1" }, + "devDependencies": { + "bytemd": "workspace:*" + }, "peerDependencies": { "bytemd": "^1.5.0" } diff --git a/packages/plugin-math/package.json b/packages/plugin-math/package.json index b5054a8..bef842d 100644 --- a/packages/plugin-math/package.json +++ b/packages/plugin-math/package.json @@ -30,13 +30,13 @@ "test": "tsdv test" }, "dependencies": { + "@icon-park/svg": "^1.4.0", "@types/katex": "^0.14.0", - "katex": "^0.15.6" + "katex": "^0.15.6", + "remark-math": "^5.1.1" }, "devDependencies": { - "@icon-park/svg": "^1.4.0", - "bytemd": "workspace:*", - "remark-math": "^5.1.1" + "bytemd": "workspace:*" }, "peerDependencies": { "bytemd": "^1.5.0" diff --git a/packages/plugin-mermaid/package.json b/packages/plugin-mermaid/package.json index a30fa74..94bcb8a 100644 --- a/packages/plugin-mermaid/package.json +++ b/packages/plugin-mermaid/package.json @@ -30,11 +30,11 @@ "test": "tsdv test" }, "dependencies": { + "@icon-park/svg": "^1.4.0", "@types/mermaid": "^8.2.9", "mermaid": "^9.1.1" }, "devDependencies": { - "@icon-park/svg": "^1.4.0", "bytemd": "workspace:*" }, "peerDependencies": {