@vixt/vitepress 0.1.28 → 0.1.29
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.
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -10,11 +10,11 @@ import { VueRouterAutoImports } from 'unplugin-vue-router';
|
|
|
10
10
|
import VueDevTools from 'vite-plugin-vue-devtools';
|
|
11
11
|
|
|
12
12
|
function generateMainTs(options, vixt) {
|
|
13
|
-
const { buildDir
|
|
13
|
+
const { buildDir } = vixt.options;
|
|
14
14
|
const mainTsPath = path.resolve(".vitepress/theme/index.ts");
|
|
15
15
|
if (!fs.existsSync(mainTsPath))
|
|
16
16
|
fs.outputFileSync(mainTsPath, `// Generated by Vixt
|
|
17
|
-
// This file transform from '${
|
|
17
|
+
// This file transform from '${path.basename(buildDir)}/main.ts'
|
|
18
18
|
`);
|
|
19
19
|
const cssTemplate = generateCss(options);
|
|
20
20
|
const appConfigTemplate = generateAppConfig(vixt);
|
|
@@ -73,7 +73,7 @@ const appVitepress = defineVixtModule({
|
|
|
73
73
|
|
|
74
74
|
const presetVitepress = defineVixtModule({
|
|
75
75
|
async setup(_, vixt) {
|
|
76
|
-
const { components, composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs(vixt._layers
|
|
76
|
+
const { components, composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs(vixt._layers);
|
|
77
77
|
const { buildTypesDir, buildImportsDir } = vixt.options;
|
|
78
78
|
const defaultOptions = {
|
|
79
79
|
components: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/vitepress",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.29",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"vitepress": "^1.5.0",
|
|
22
|
-
"@vixt/
|
|
23
|
-
"@vixt/
|
|
22
|
+
"@vixt/vue": "0.1.29",
|
|
23
|
+
"@vixt/core": "0.1.29"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "unbuild"
|