fe-stack 0.0.9 → 0.0.10
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/package.json +4 -3
- package/vite.config.base.d.ts +3 -3
- package/vite.config.base.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fe-stack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "共享的配置文件集合,用于 Vite、Tailwind、Biome、Prettier 和 TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
"prepublishOnly": "pnpm pack --dry-run"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@microsoft/api-extractor": "7.55.2",
|
|
46
47
|
"@tailwindcss/vite": "^4.1.18",
|
|
47
48
|
"@types/node": "25.0.3",
|
|
48
49
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
49
50
|
"@vue/tsconfig": "^0.7.0",
|
|
50
51
|
"unplugin-auto-import": "^20.3.0",
|
|
52
|
+
"unplugin-dts": "1.0.0-beta.6",
|
|
51
53
|
"unplugin-vue-components": "^30.0.0",
|
|
52
|
-
"unplugin-vue-router": "^0.19.2"
|
|
53
|
-
"unplugin-dts": "1.0.0-beta.6"
|
|
54
|
+
"unplugin-vue-router": "^0.19.2"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"@biomejs/biome": "^2.3.11",
|
package/vite.config.base.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import type { PluginOptions as DtsPluginOptions } from 'unplugin-dts';
|
|
1
2
|
import type { UserConfig } from 'vite';
|
|
2
|
-
import type { PluginOptions as DtsPluginOptions } from 'vite-plugin-dts';
|
|
3
3
|
|
|
4
4
|
export interface CreateBaseConfigOptions {
|
|
5
5
|
/**
|
|
6
6
|
* 构建模式
|
|
7
7
|
* - 'app': Vue 应用模式,包含 Vue Router、Auto Import 等
|
|
8
|
-
* - 'lib': 库打包模式,配置
|
|
8
|
+
* - 'lib': 库打包模式,配置 unplugin-dts/vite
|
|
9
9
|
*/
|
|
10
10
|
mode?: 'app' | 'lib';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* unplugin-dts/vite 配置(仅 lib 模式)
|
|
14
14
|
* 会与默认配置合并,可以覆盖 include、exclude 等选项
|
|
15
15
|
*/
|
|
16
16
|
dtsConfig?: Partial<DtsPluginOptions>;
|
package/vite.config.base.js
CHANGED
|
@@ -9,10 +9,10 @@ import { defineConfig, mergeConfig } from 'vite';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {import('vite').UserConfig} UserConfig
|
|
12
|
-
* @typedef {import('
|
|
12
|
+
* @typedef {import('unplugin-dts').PluginOptions} DtsPluginOptions
|
|
13
13
|
* @typedef {Object} CreateBaseConfigOptions
|
|
14
14
|
* @property {'app' | 'lib'} [mode] - 构建模式:'app' 为 Vue 应用,'lib' 为库打包
|
|
15
|
-
* @property {Partial<DtsPluginOptions>} [dtsConfig] -
|
|
15
|
+
* @property {Partial<DtsPluginOptions>} [dtsConfig] - unplugin-dts 配置(仅 lib 模式),会与默认配置合并
|
|
16
16
|
* @property {UserConfig} [viteConfig] - 额外的 Vite 配置,会与基础配置合并
|
|
17
17
|
*/
|
|
18
18
|
|