@vuepress/theme-default 2.0.0-beta.50-pre.1 → 2.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,14 +17,18 @@ export const defaultTheme = ({ themePlugins = {}, ...localeOptions } = {}) => {
17
17
  name: '@vuepress/theme-default',
18
18
  layouts: path.resolve(__dirname, '../client/layouts'),
19
19
  templateBuild: path.resolve(__dirname, '../../templates/build.html'),
20
- // use alias to make all components replaceable
21
- alias: Object.fromEntries(fs
22
- .readdirSync(path.resolve(__dirname, '../client/components'))
23
- .filter((file) => file.endsWith('.vue'))
24
- .map((file) => [
25
- `@theme/${file}`,
26
- path.resolve(__dirname, '../client/components', file),
27
- ])),
20
+ alias: {
21
+ // use alias to make all components replaceable
22
+ ...Object.fromEntries(fs
23
+ .readdirSync(path.resolve(__dirname, '../client/components'))
24
+ .filter((file) => file.endsWith('.vue'))
25
+ .map((file) => [
26
+ `@theme/${file}`,
27
+ path.resolve(__dirname, '../client/components', file),
28
+ ])),
29
+ // workaround for https://github.com/vitejs/vite/issues/7621
30
+ '@vuepress/theme-default/client': path.resolve(__dirname, '../client/index.js'),
31
+ },
28
32
  clientConfigFile: path.resolve(__dirname, '../client/config.js'),
29
33
  extendsPage: (page) => {
30
34
  // save relative file path into page data to generate edit link
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-beta.50-pre.1",
3
+ "version": "2.0.0-beta.50",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -22,6 +22,8 @@
22
22
  "exports": {
23
23
  ".": "./lib/node/index.js",
24
24
  "./client": "./lib/client/index.js",
25
+ "./components/*": "./lib/client/components/*",
26
+ "./layouts/*": "./lib/client/layouts/*",
25
27
  "./templates/*": "./templates/*",
26
28
  "./package.json": "./package.json"
27
29
  },
@@ -32,24 +34,24 @@
32
34
  "templates"
33
35
  ],
34
36
  "dependencies": {
35
- "@vuepress/client": "2.0.0-beta.50-pre.1",
36
- "@vuepress/core": "2.0.0-beta.50-pre.1",
37
- "@vuepress/plugin-active-header-links": "2.0.0-beta.50-pre.1",
38
- "@vuepress/plugin-back-to-top": "2.0.0-beta.50-pre.1",
39
- "@vuepress/plugin-container": "2.0.0-beta.50-pre.1",
40
- "@vuepress/plugin-external-link-icon": "2.0.0-beta.50-pre.1",
41
- "@vuepress/plugin-git": "2.0.0-beta.50-pre.1",
42
- "@vuepress/plugin-medium-zoom": "2.0.0-beta.50-pre.1",
43
- "@vuepress/plugin-nprogress": "2.0.0-beta.50-pre.1",
44
- "@vuepress/plugin-palette": "2.0.0-beta.50-pre.1",
45
- "@vuepress/plugin-prismjs": "2.0.0-beta.50-pre.1",
46
- "@vuepress/plugin-theme-data": "2.0.0-beta.50-pre.1",
47
- "@vuepress/shared": "2.0.0-beta.50-pre.1",
48
- "@vuepress/utils": "2.0.0-beta.50-pre.1",
37
+ "@vuepress/client": "2.0.0-beta.50",
38
+ "@vuepress/core": "2.0.0-beta.50",
39
+ "@vuepress/plugin-active-header-links": "2.0.0-beta.50",
40
+ "@vuepress/plugin-back-to-top": "2.0.0-beta.50",
41
+ "@vuepress/plugin-container": "2.0.0-beta.50",
42
+ "@vuepress/plugin-external-link-icon": "2.0.0-beta.50",
43
+ "@vuepress/plugin-git": "2.0.0-beta.50",
44
+ "@vuepress/plugin-medium-zoom": "2.0.0-beta.50",
45
+ "@vuepress/plugin-nprogress": "2.0.0-beta.50",
46
+ "@vuepress/plugin-palette": "2.0.0-beta.50",
47
+ "@vuepress/plugin-prismjs": "2.0.0-beta.50",
48
+ "@vuepress/plugin-theme-data": "2.0.0-beta.50",
49
+ "@vuepress/shared": "2.0.0-beta.50",
50
+ "@vuepress/utils": "2.0.0-beta.50",
49
51
  "@vueuse/core": "^9.1.0",
50
- "sass": "^1.54.4",
52
+ "sass": "^1.54.5",
51
53
  "vue": "^3.2.37",
52
- "vue-router": "^4.1.3"
54
+ "vue-router": "^4.1.4"
53
55
  },
54
56
  "peerDependencies": {
55
57
  "sass-loader": "^13.0.0"