@vixt/vitepress 0.1.30 → 0.1.32

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -4
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { defineVixtModule, resolveLayersDirs, createVixtPlugin } from '@vixt/core';
2
2
  import { generateCss, generateAppConfig, generatePlugins } from '@vixt/vue';
3
3
  import fs from 'fs-extra';
4
- import path, { resolve } from 'pathe';
5
- import { cwd } from 'node:process';
4
+ import path from 'pathe';
6
5
  import defu from 'defu';
7
6
  import UnoCSS from 'unocss/vite';
8
7
  import AutoImport from 'unplugin-auto-import/vite';
@@ -77,7 +76,6 @@ const presetVitepress = defineVixtModule({
77
76
  const { components, composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs(vixt._layers);
78
77
  const { buildTypesDir, buildImportsDir } = vixt.options;
79
78
  const defaultOptions = {
80
- srcDir: resolve(cwd(), ".vitepress"),
81
79
  components: {
82
80
  dts: `${buildTypesDir}/components.d.ts`,
83
81
  dirs: components,
@@ -87,7 +85,7 @@ const presetVitepress = defineVixtModule({
87
85
  include: [/\.vue$/, /\.vue\?vue/, /\.md$/]
88
86
  },
89
87
  imports: {
90
- include: [/\.md/, /\.md\?md/],
88
+ include: [/\.[jt]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md/, /\.md\?md/],
91
89
  imports: ["vue", "@vueuse/core", "pinia", VueRouterAutoImports],
92
90
  dts: `${buildTypesDir}/auto-imports.d.ts`,
93
91
  dirs: [...composables, ...constants, ...stores, ...utils, buildImportsDir],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/vitepress",
3
3
  "type": "module",
4
- "version": "0.1.30",
4
+ "version": "0.1.32",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -18,9 +18,9 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "vitepress": "^1.5.0",
22
- "@vixt/core": "0.1.30",
23
- "@vixt/vue": "0.1.30"
21
+ "vitepress": "^1.6.3",
22
+ "@vixt/vue": "0.1.32",
23
+ "@vixt/core": "0.1.32"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "unbuild"