build: workspace protocol

This commit is contained in:
Rongjian Zhang 2022-03-05 18:31:44 +08:00
parent c8e15699c7
commit c98dfb72a7
17 changed files with 52 additions and 54 deletions

2
.npmrc
View File

@ -1,2 +0,0 @@
save-workspace-protocol=false
prefer-workspace-packages=true

View File

@ -2,18 +2,18 @@
"name": "@bytemd/playground", "name": "@bytemd/playground",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@bytemd/plugin-breaks": "latest", "@bytemd/plugin-breaks": "workspace:*",
"@bytemd/plugin-footnotes": "latest", "@bytemd/plugin-footnotes": "workspace:*",
"@bytemd/plugin-frontmatter": "latest", "@bytemd/plugin-frontmatter": "workspace:*",
"@bytemd/plugin-gemoji": "latest", "@bytemd/plugin-gemoji": "workspace:*",
"@bytemd/plugin-gfm": "latest", "@bytemd/plugin-gfm": "workspace:*",
"@bytemd/plugin-highlight": "latest", "@bytemd/plugin-highlight": "workspace:*",
"@bytemd/plugin-highlight-ssr": "latest", "@bytemd/plugin-highlight-ssr": "workspace:*",
"@bytemd/plugin-math": "latest", "@bytemd/plugin-math": "workspace:*",
"@bytemd/plugin-math-ssr": "latest", "@bytemd/plugin-math-ssr": "workspace:*",
"@bytemd/plugin-medium-zoom": "latest", "@bytemd/plugin-medium-zoom": "workspace:*",
"@bytemd/plugin-mermaid": "latest", "@bytemd/plugin-mermaid": "workspace:*",
"bytemd": "latest", "bytemd": "workspace:*",
"github-markdown-css": "^5.1.0", "github-markdown-css": "^5.1.0",
"highlight.js": "^11.4.0", "highlight.js": "^11.4.0",
"katex": "^0.15.2" "katex": "^0.15.2"

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"remark-breaks": "^3.0.2" "remark-breaks": "^3.0.2"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"remark-footnotes": "^4.0.1" "remark-footnotes": "^4.0.1"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -23,7 +23,7 @@
], ],
"devDependencies": { "devDependencies": {
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"remark-frontmatter": "^4.0.1", "remark-frontmatter": "^4.0.1",
"vfile": "^5.3.0" "vfile": "^5.3.0"

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"remark-gemoji": "^7.0.1" "remark-gemoji": "^7.0.1"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"remark-gfm": "^3.0.1" "remark-gfm": "^3.0.1"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -25,7 +25,7 @@
"highlight.js": "^11.4.0" "highlight.js": "^11.4.0"
}, },
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"rehype-highlight": "^5.0.2" "rehype-highlight": "^5.0.2"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -25,7 +25,7 @@
"highlight.js": "^11.4.0" "highlight.js": "^11.4.0"
}, },
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"peerDependencies": { "peerDependencies": {
"bytemd": "^1.5.0" "bytemd": "^1.5.0"

View File

@ -4,7 +4,7 @@
"private": true, "private": true,
"main": "src/index.ts", "main": "src/index.ts",
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"peerDependencies": { "peerDependencies": {
"bytemd": "^1.5.0" "bytemd": "^1.5.0"

View File

@ -23,7 +23,7 @@
], ],
"devDependencies": { "devDependencies": {
"@bytemd/plugin-math-common": "^1.11.0", "@bytemd/plugin-math-common": "^1.11.0",
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"rehype-katex": "^6.0.2", "rehype-katex": "^6.0.2",
"remark-math": "^5.1.1" "remark-math": "^5.1.1"
}, },

View File

@ -27,7 +27,7 @@
}, },
"devDependencies": { "devDependencies": {
"@bytemd/plugin-math-common": "^1.11.0", "@bytemd/plugin-math-common": "^1.11.0",
"bytemd": "^1.11.0", "bytemd": "workspace:*",
"remark-math": "^5.1.1" "remark-math": "^5.1.1"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -25,7 +25,7 @@
"medium-zoom": "^1.0.6" "medium-zoom": "^1.0.6"
}, },
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"peerDependencies": { "peerDependencies": {
"bytemd": "^1.5.0" "bytemd": "^1.5.0"

View File

@ -26,7 +26,7 @@
"mermaid": "^8.13.10" "mermaid": "^8.13.10"
}, },
"devDependencies": { "devDependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"peerDependencies": { "peerDependencies": {
"bytemd": "^1.5.0" "bytemd": "^1.5.0"

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"dependencies": { "dependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^17.0.38", "@types/react": "^17.0.38",

View File

@ -22,7 +22,7 @@
"lib" "lib"
], ],
"dependencies": { "dependencies": {
"bytemd": "^1.11.0" "bytemd": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"vite-plugin-vue2": "^1.9.3", "vite-plugin-vue2": "^1.9.3",

View File

@ -103,18 +103,18 @@ importers:
packages/playground: packages/playground:
specifiers: specifiers:
'@bytemd/plugin-breaks': latest '@bytemd/plugin-breaks': workspace:*
'@bytemd/plugin-footnotes': latest '@bytemd/plugin-footnotes': workspace:*
'@bytemd/plugin-frontmatter': latest '@bytemd/plugin-frontmatter': workspace:*
'@bytemd/plugin-gemoji': latest '@bytemd/plugin-gemoji': workspace:*
'@bytemd/plugin-gfm': latest '@bytemd/plugin-gfm': workspace:*
'@bytemd/plugin-highlight': latest '@bytemd/plugin-highlight': workspace:*
'@bytemd/plugin-highlight-ssr': latest '@bytemd/plugin-highlight-ssr': workspace:*
'@bytemd/plugin-math': latest '@bytemd/plugin-math': workspace:*
'@bytemd/plugin-math-ssr': latest '@bytemd/plugin-math-ssr': workspace:*
'@bytemd/plugin-medium-zoom': latest '@bytemd/plugin-medium-zoom': workspace:*
'@bytemd/plugin-mermaid': latest '@bytemd/plugin-mermaid': workspace:*
bytemd: latest bytemd: workspace:*
github-markdown-css: ^5.1.0 github-markdown-css: ^5.1.0
highlight.js: ^11.4.0 highlight.js: ^11.4.0
katex: ^0.15.2 katex: ^0.15.2
@ -137,7 +137,7 @@ importers:
packages/plugin-breaks: packages/plugin-breaks:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
remark-breaks: ^3.0.2 remark-breaks: ^3.0.2
devDependencies: devDependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
@ -145,7 +145,7 @@ importers:
packages/plugin-footnotes: packages/plugin-footnotes:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
remark-footnotes: ^4.0.1 remark-footnotes: ^4.0.1
devDependencies: devDependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
@ -154,7 +154,7 @@ importers:
packages/plugin-frontmatter: packages/plugin-frontmatter:
specifiers: specifiers:
'@types/js-yaml': ^4.0.5 '@types/js-yaml': ^4.0.5
bytemd: ^1.11.0 bytemd: workspace:*
js-yaml: ^4.1.0 js-yaml: ^4.1.0
remark-frontmatter: ^4.0.1 remark-frontmatter: ^4.0.1
vfile: ^5.3.0 vfile: ^5.3.0
@ -167,7 +167,7 @@ importers:
packages/plugin-gemoji: packages/plugin-gemoji:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
remark-gemoji: ^7.0.1 remark-gemoji: ^7.0.1
devDependencies: devDependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
@ -175,7 +175,7 @@ importers:
packages/plugin-gfm: packages/plugin-gfm:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
remark-gfm: ^3.0.1 remark-gfm: ^3.0.1
devDependencies: devDependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
@ -183,7 +183,7 @@ importers:
packages/plugin-highlight: packages/plugin-highlight:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
highlight.js: ^11.4.0 highlight.js: ^11.4.0
dependencies: dependencies:
highlight.js: 11.4.0 highlight.js: 11.4.0
@ -192,7 +192,7 @@ importers:
packages/plugin-highlight-ssr: packages/plugin-highlight-ssr:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
highlight.js: ^11.4.0 highlight.js: ^11.4.0
rehype-highlight: ^5.0.2 rehype-highlight: ^5.0.2
dependencies: dependencies:
@ -205,7 +205,7 @@ importers:
specifiers: specifiers:
'@bytemd/plugin-math-common': ^1.11.0 '@bytemd/plugin-math-common': ^1.11.0
'@types/katex': ^0.11.1 '@types/katex': ^0.11.1
bytemd: ^1.11.0 bytemd: workspace:*
katex: ^0.15.2 katex: ^0.15.2
remark-math: ^5.1.1 remark-math: ^5.1.1
dependencies: dependencies:
@ -218,14 +218,14 @@ importers:
packages/plugin-math-common: packages/plugin-math-common:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
devDependencies: devDependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
packages/plugin-math-ssr: packages/plugin-math-ssr:
specifiers: specifiers:
'@bytemd/plugin-math-common': ^1.11.0 '@bytemd/plugin-math-common': ^1.11.0
bytemd: ^1.11.0 bytemd: workspace:*
rehype-katex: ^6.0.2 rehype-katex: ^6.0.2
remark-math: ^5.1.1 remark-math: ^5.1.1
devDependencies: devDependencies:
@ -236,7 +236,7 @@ importers:
packages/plugin-medium-zoom: packages/plugin-medium-zoom:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
medium-zoom: ^1.0.6 medium-zoom: ^1.0.6
dependencies: dependencies:
medium-zoom: 1.0.6 medium-zoom: 1.0.6
@ -246,7 +246,7 @@ importers:
packages/plugin-mermaid: packages/plugin-mermaid:
specifiers: specifiers:
'@types/mermaid': ^8.2.7 '@types/mermaid': ^8.2.7
bytemd: ^1.11.0 bytemd: workspace:*
mermaid: ^8.13.10 mermaid: ^8.13.10
dependencies: dependencies:
'@types/mermaid': 8.2.7 '@types/mermaid': 8.2.7
@ -257,7 +257,7 @@ importers:
packages/react: packages/react:
specifiers: specifiers:
'@types/react': ^17.0.38 '@types/react': ^17.0.38
bytemd: ^1.11.0 bytemd: workspace:*
react: ^17.0.2 react: ^17.0.2
dependencies: dependencies:
bytemd: link:../bytemd bytemd: link:../bytemd
@ -267,7 +267,7 @@ importers:
packages/vue: packages/vue:
specifiers: specifiers:
bytemd: ^1.11.0 bytemd: workspace:*
vite-plugin-vue2: ^1.9.3 vite-plugin-vue2: ^1.9.3
vue: ^2.6.14 vue: ^2.6.14
vue-template-compiler: ^2.6.14 vue-template-compiler: ^2.6.14