@chatbi-v/cli 2.1.6 → 2.1.7

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,11 +1,15 @@
1
1
  {
2
2
  "name": "@chatbi-v/cli",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Standardized CLI tooling for ChatBI Monorepo",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./package.json": "./package.json"
12
+ },
9
13
  "bin": {
10
14
  "chatbi-cli": "./bin/chatbi-cli.js"
11
15
  },
@@ -1,5 +1,5 @@
1
1
  # API Base URL
2
- VITE_API_BASE_URL=/bron-chat-bi
2
+ VITE_API_BASE_URL=/
3
3
 
4
4
  # 是否开启 Mock 模式 (能力开关,需配合 url mock=true 使用)
5
5
  VITE_USE_MOCK=false
@@ -14,10 +14,6 @@
14
14
  "@ant-design/x": "^2.1.1",
15
15
  "@chatbi-v/core": "^2.1.6",
16
16
  "@chatbi-v/mocks": "^2.1.6",
17
- "@chatbi-v/cli": "^2.1.6",
18
- "@chatbi-v/plugin-theme-manager": "2.0.4",
19
- "@chatbi-v/plugin-layout-transform": "2.0.4",
20
- "@chatbi-v/plugin-system-monitor": "2.0.4",
21
17
  "antd": "^5.29.3",
22
18
  "react": "^18.3.1",
23
19
  "react-dom": "^18.3.1",
@@ -25,7 +21,8 @@
25
21
  "zustand": "^5.0.9"
26
22
  },
27
23
  "devDependencies": {
28
- "@chatbi-v/config":"^2.1.6",
24
+ "@chatbi-v/cli": "^2.1.7",
25
+ "@chatbi-v/config":"^2.1.7",
29
26
  "@types/node": "^25.0.3",
30
27
  "@types/react": "^18.2.43",
31
28
  "@types/react-dom": "^18.2.17",
@@ -0,0 +1,14 @@
1
+ import path from 'path';
2
+ import { fileURLToPath } from 'url';
3
+
4
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
+
6
+ export default {
7
+ plugins: {
8
+ 'tailwindcss/nesting': {},
9
+ tailwindcss: {
10
+ config: path.resolve(__dirname, 'tailwind.config.js'),
11
+ },
12
+ autoprefixer: {},
13
+ },
14
+ }
@@ -1,8 +1,11 @@
1
- const baseConfig = require('@chatbi-v/config/tailwind');
2
- const path = require('path');
1
+ import baseConfig from '@chatbi-v/config/tailwind';
2
+ import path from 'path';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
3
6
 
4
7
  /** @type {import('tailwindcss').Config} */
5
- module.exports = {
8
+ export default {
6
9
  ...baseConfig,
7
10
  darkMode: 'class',
8
11
  content: [
@@ -32,4 +35,4 @@ module.exports = {
32
35
  }
33
36
  },
34
37
  plugins: []
35
- }
38
+ }
@@ -6,7 +6,7 @@
6
6
  "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "module": "ESNext",
8
8
  "skipLibCheck": true,
9
- "moduleResolution": "bundler",
9
+ "moduleResolution": "node",
10
10
  "allowImportingTsExtensions": true,
11
11
  "resolveJsonModule": true,
12
12
  "isolatedModules": true,
@@ -14,6 +14,8 @@
14
14
  "plugins/*"
15
15
  ],
16
16
  "dependencies": {
17
+ "@chatbi-v/core": "^2.1.7",
18
+ "@chatbi-v/mocks": "^2.1.7",
17
19
  "react": "^18.3.1",
18
20
  "react-dom": "^18.3.1",
19
21
  "antd": "^5.29.3",
@@ -24,8 +26,8 @@
24
26
  },
25
27
  "devDependencies": {
26
28
  "typescript": "^5.0.0",
27
- "@chatbi-v/config": "^2.1.6",
28
- "@chatbi-v/cli": "^2.1.6",
29
+ "@chatbi-v/config": "^2.1.7",
30
+ "@chatbi-v/cli": "^2.1.7",
29
31
  "@ant-design/icons": "^5.6.1",
30
32
  "@types/react": "^18.3.1",
31
33
  "@types/react-dom": "^18.3.1",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "plugin": true,
23
23
  "peerDependencies": {
24
- "@chatbi-v/core": "^2.1.6",
24
+ "@chatbi-v/core": "^2.1.7",
25
25
  "antd": "^5.20.0",
26
26
  "react": ">=18.0.0",
27
27
  "react-dom": ">=18.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@chatbi-v/core": "^2.1.6",
31
- "@chatbi-v/config": "^2.1.6",
30
+ "@chatbi-v/core": "^2.1.7",
31
+ "@chatbi-v/config": "^2.1.7",
32
32
  "tsup": "^8.5.1",
33
33
  "vite": "^5.0.0"
34
34
  }
@@ -3,7 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist",
5
5
  "rootDir": "./src",
6
- "moduleResolution": "bundler",
6
+ "moduleResolution": "node",
7
7
  "composite": true
8
8
  },
9
9
  "include": ["src"]
@@ -1,10 +0,0 @@
1
- const path = require('path');
2
- module.exports = {
3
- plugins: {
4
- 'tailwindcss/nesting': {},
5
- tailwindcss: {
6
- config: path.resolve(__dirname, 'tailwind.config.cjs'),
7
- },
8
- autoprefixer: {},
9
- },
10
- }