Skip to content

Commit

Permalink
build(vuepress): remove client package from peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 28, 2023
1 parent 3fa2511 commit 9292b11
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/bundler-vite/src/plugins/vuepressMainPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const vuepressMainPlugin = ({
/<\/body>/,
`\
<script type="module">
import '@vuepress/client/app'
import 'vuepress/client-app'
</script>
</body>`,
),
Expand Down
5 changes: 4 additions & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
},
"tsup": {
"clean": true,
"dts": "./src/index.ts",
"dts": [
"./src/app.ts",
"./src/index.ts"
],
"entry": [
"./src/app.ts",
"./src/index.ts"
Expand Down
4 changes: 3 additions & 1 deletion packages/vuepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"./bin": "./bin/vuepress.js",
"./cli": "./dist/cli.js",
"./client": "./dist/client.js",
"./client-app": "./dist/client-app.js",
"./core": "./dist/core.js",
"./markdown": "./dist/markdown.js",
"./shared": "./dist/shared.js",
Expand Down Expand Up @@ -57,7 +58,6 @@
"peerDependencies": {
"@vuepress/bundler-vite": "workspace:*",
"@vuepress/bundler-webpack": "workspace:*",
"@vuepress/client": "workspace:*",
"vue": "^3.3.13"
},
"peerDependenciesMeta": {
Expand All @@ -76,6 +76,7 @@
"dts": [
"./src/index.ts",
"./src/cli.ts",
"./src/client-app.ts",
"./src/client.ts",
"./src/core.ts",
"./src/markdown.ts",
Expand All @@ -85,6 +86,7 @@
"entry": [
"./src/index.ts",
"./src/cli.ts",
"./src/client-app.ts",
"./src/client.ts",
"./src/core.ts",
"./src/markdown.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/vuepress/src/client-app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@vuepress/client/app'

0 comments on commit 9292b11

Please sign in to comment.