tutor-pro-ui-vue 1.0.2-beta → 1.0.3-beta

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tutor-pro-ui-vue",
3
3
  "private": false,
4
- "version": "1.0.2-beta",
4
+ "version": "1.0.3-beta",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -35,6 +35,7 @@
35
35
  "typescript": "~5.6.2",
36
36
  "typescript-eslint": "^8.18.0",
37
37
  "vite": "^6.0.1",
38
+ "vite-plugin-dts": "^4.3.0",
38
39
  "vitepress": "^1.5.0",
39
40
  "vue-tsc": "^2.1.10"
40
41
  },
@@ -2,7 +2,6 @@ import { defineComponent } from 'vue';
2
2
 
3
3
  export default defineComponent({
4
4
  name: 'CommonButton',
5
-
6
5
  render() {
7
6
  return <el-button type="primary">s</el-button>;
8
7
  },
@@ -1,3 +1 @@
1
- import CommonButton from './CommonButton';
2
-
3
- export { CommonButton };
1
+ export * from './CommonButton';
package/vite.config.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { defineConfig } from 'vite';
2
2
  import vue from '@vitejs/plugin-vue';
3
3
  import vueJsx from '@vitejs/plugin-vue-jsx';
4
+ import dts from 'vite-plugin-dts';
5
+
4
6
  // 需要下载@types/node
5
7
  import path from 'path';
6
8
 
@@ -10,7 +12,7 @@ export default defineConfig({
10
12
  port: 8084,
11
13
  host: '0.0.0.0',
12
14
  },
13
- plugins: [vue(), vueJsx()],
15
+ plugins: [vue(), vueJsx(), dts()],
14
16
  build: {
15
17
  outDir: 'dist',
16
18
  // cssCodeSplit: true, // 强制内联CSS