From 0e28d3364a2d3bdb0895099648ebc34391baddcd Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 13 Oct 2022 17:05:31 +0800 Subject: [PATCH] fix: make lodash and icons inline closes #218 --- package.json | 1 + packages/bytemd/package.json | 3 --- packages/plugin-gfm/package.json | 1 - packages/plugin-math-ssr/package.json | 1 - packages/plugin-math/package.json | 1 - packages/plugin-mermaid/package.json | 1 - pnpm-lock.yaml | 21 ++++++--------------- 7 files changed, 7 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 4cb44b9..aa23ac4 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "singleQuote": true }, "devDependencies": { + "@icon-park/svg": "^1.4.2", "@sveltejs/vite-plugin-svelte": "1.0.9", "@testing-library/jest-dom": "^5.16.5", "@testing-library/svelte": "^3.2.2", diff --git a/packages/bytemd/package.json b/packages/bytemd/package.json index 94d2231..5390cdd 100644 --- a/packages/bytemd/package.json +++ b/packages/bytemd/package.json @@ -37,15 +37,12 @@ "svelte" ], "dependencies": { - "@icon-park/svg": "^1.4.2", "@popperjs/core": "^2.11.6", "@types/codemirror": "^5.60.5", "@types/hast": "^2.3.4", - "@types/lodash-es": "^4.17.6", "@types/mdast": "^3.0.10", "codemirror-ssr": "^0.65.0", "hast-util-sanitize": "^4.0.0", - "lodash-es": "^4.17.21", "rehype-raw": "^6.1.1", "rehype-sanitize": "^5.0.1", "rehype-stringify": "^9.0.3", diff --git a/packages/plugin-gfm/package.json b/packages/plugin-gfm/package.json index 5264a45..3047b1d 100644 --- a/packages/plugin-gfm/package.json +++ b/packages/plugin-gfm/package.json @@ -28,7 +28,6 @@ "locales" ], "dependencies": { - "@icon-park/svg": "^1.4.2", "remark-gfm": "^3.0.1" }, "devDependencies": { diff --git a/packages/plugin-math-ssr/package.json b/packages/plugin-math-ssr/package.json index f350f6b..2f4ba69 100644 --- a/packages/plugin-math-ssr/package.json +++ b/packages/plugin-math-ssr/package.json @@ -28,7 +28,6 @@ "locales" ], "dependencies": { - "@icon-park/svg": "^1.4.2", "rehype-katex": "^6.0.2", "remark-math": "^5.1.1" }, diff --git a/packages/plugin-math/package.json b/packages/plugin-math/package.json index db68cea..8f0f208 100644 --- a/packages/plugin-math/package.json +++ b/packages/plugin-math/package.json @@ -28,7 +28,6 @@ "locales" ], "dependencies": { - "@icon-park/svg": "^1.4.2", "@types/katex": "^0.14.0", "katex": "^0.16.2", "remark-math": "^5.1.1" diff --git a/packages/plugin-mermaid/package.json b/packages/plugin-mermaid/package.json index 1b73a26..c6e1d87 100644 --- a/packages/plugin-mermaid/package.json +++ b/packages/plugin-mermaid/package.json @@ -28,7 +28,6 @@ "locales" ], "dependencies": { - "@icon-park/svg": "^1.4.2", "@types/mermaid": "^9.1.0", "mermaid": "^9.1.7" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 78a454e..56ffbef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,7 @@ importers: .: specifiers: + '@icon-park/svg': ^1.4.2 '@sveltejs/vite-plugin-svelte': 1.0.9 '@testing-library/jest-dom': ^5.16.5 '@testing-library/svelte': ^3.2.2 @@ -32,6 +33,7 @@ importers: tsx: ^3.10.1 typescript: ^4.8.4 devDependencies: + '@icon-park/svg': 1.4.2 '@sveltejs/vite-plugin-svelte': 1.0.9_svelte@3.50.1 '@testing-library/jest-dom': 5.16.5 '@testing-library/svelte': 3.2.2_svelte@3.50.1 @@ -62,16 +64,13 @@ importers: packages/bytemd: specifiers: - '@icon-park/svg': ^1.4.2 '@popperjs/core': ^2.11.6 '@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 codemirror-ssr: ^0.65.0 hast-util-sanitize: ^4.0.0 - lodash-es: ^4.17.21 rehype-raw: ^6.1.1 rehype-sanitize: ^5.0.1 rehype-stringify: ^9.0.3 @@ -84,15 +83,12 @@ importers: vfile: ^5.3.5 word-count: ^0.2.2 dependencies: - '@icon-park/svg': 1.4.2 '@popperjs/core': 2.11.6 '@types/codemirror': 5.60.5 '@types/hast': 2.3.4 - '@types/lodash-es': 4.17.6 '@types/mdast': 3.0.10 codemirror-ssr: 0.65.0_@types+codemirror@5.60.5 hast-util-sanitize: 4.0.0 - lodash-es: 4.17.21 rehype-raw: 6.1.1 rehype-sanitize: 5.0.1 rehype-stringify: 9.0.3 @@ -142,11 +138,9 @@ importers: packages/plugin-gfm: specifiers: - '@icon-park/svg': ^1.4.2 bytemd: workspace:* remark-gfm: ^3.0.1 dependencies: - '@icon-park/svg': 1.4.2 remark-gfm: 3.0.1 devDependencies: bytemd: link:../bytemd @@ -171,13 +165,11 @@ importers: packages/plugin-math: specifiers: - '@icon-park/svg': ^1.4.2 '@types/katex': ^0.14.0 bytemd: workspace:* katex: ^0.16.2 remark-math: ^5.1.1 dependencies: - '@icon-park/svg': 1.4.2 '@types/katex': 0.14.0 katex: 0.16.2 remark-math: 5.1.1 @@ -186,12 +178,10 @@ importers: packages/plugin-math-ssr: specifiers: - '@icon-park/svg': ^1.4.2 bytemd: workspace:* rehype-katex: ^6.0.2 remark-math: ^5.1.1 dependencies: - '@icon-park/svg': 1.4.2 rehype-katex: 6.0.2 remark-math: 5.1.1 devDependencies: @@ -208,12 +198,10 @@ importers: packages/plugin-mermaid: specifiers: - '@icon-park/svg': ^1.4.2 '@types/mermaid': ^9.1.0 bytemd: workspace:* mermaid: ^9.1.7 dependencies: - '@icon-park/svg': 1.4.2 '@types/mermaid': 9.1.0 mermaid: 9.1.7 devDependencies: @@ -934,7 +922,7 @@ packages: /@icon-park/svg/1.4.2: resolution: {integrity: sha512-1X0DA+1e0R0liYvw+Nb2BQmF1oEo/wS3o/JYkQYifPJXCGYij2vN9sJf/NNhbzDsJWTg4W2bbzZjJvC7Q4w4oQ==} engines: {node: '>= 8.0.0', npm: '>= 5.0.0'} - dev: false + dev: true /@jest/expect-utils/28.1.3: resolution: {integrity: sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA==} @@ -1311,9 +1299,11 @@ packages: resolution: {integrity: sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==} dependencies: '@types/lodash': 4.14.182 + dev: true /@types/lodash/4.14.182: resolution: {integrity: sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==} + dev: true /@types/mdast/3.0.10: resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==} @@ -4400,6 +4390,7 @@ packages: /lodash-es/4.17.21: resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + dev: true /lodash.get/4.4.2: resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}