@lmy54321/design-system 1.3.11 → 1.3.12

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.js CHANGED
@@ -3761,7 +3761,7 @@ function GridSystemDocs() {
3761
3761
  }
3762
3762
 
3763
3763
  // index.ts
3764
- var VERSION = "1.3.11";
3764
+ var VERSION = "1.3.12";
3765
3765
 
3766
3766
  exports.ActionSheet = ActionSheet;
3767
3767
  exports.BottomActionButtons = BottomActionButtons;
package/dist/index.mjs CHANGED
@@ -3740,7 +3740,7 @@ function GridSystemDocs() {
3740
3740
  }
3741
3741
 
3742
3742
  // index.ts
3743
- var VERSION = "1.3.11";
3743
+ var VERSION = "1.3.12";
3744
3744
 
3745
3745
  export { ActionSheet, BottomActionButtons, BottomNavigationBar, BottomSheet, BottomSheetOption, BottomSheetShareItem, BottomToolbar, Btn, BubbleTip, CardDemo, DRAWER_STATES, Dialog, DraggablePanel, EmptyState, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, IconGallery, ImageWithFallback, Loading, NewsItem, NotificationBar, POIListItem, PoiItem, Push, SearchBox, SegmentedControl, StatGrid, Switch, Tag, TencentMap, Toast, TopToolbar, TypographyDocs, VERSION, cn, hasFilledVariant };
3746
3746
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmy54321/design-system",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "A comprehensive React component library and design system based on Tailwind CSS and Motion.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/scripts/init.mjs CHANGED
@@ -12,6 +12,13 @@ const __dirname = dirname(__filename);
12
12
  const packageDir = resolve(__dirname, '..');
13
13
  const cwd = process.cwd();
14
14
 
15
+ // 全局执行选项:使用 pipe 而非 inherit,便于 AI 自动化处理
16
+ const execOptions = {
17
+ cwd,
18
+ stdio: 'pipe',
19
+ encoding: 'utf-8'
20
+ };
21
+
15
22
  console.log('\n🚀 @lmy54321/design-system 项目初始化\n');
16
23
  console.log(`📂 初始化位置: ${cwd}\n`);
17
24
 
@@ -46,13 +53,10 @@ try {
46
53
 
47
54
  console.log('📦 步骤 1/5: 创建 Vite 项目...');
48
55
  try {
49
- execSync('npm create vite@latest . -- --template react-ts --yes', {
50
- cwd,
51
- stdio: 'inherit'
52
- });
56
+ execSync('npm create vite@latest . -- --template react-ts --yes', execOptions);
53
57
  console.log('✅ Vite 项目已创建\n');
54
58
  } catch (error) {
55
- console.error('❌ 创建 Vite 项目失败');
59
+ console.error('❌ 创建 Vite 项目失败:', error.message);
56
60
  process.exit(1);
57
61
  }
58
62
 
@@ -62,13 +66,10 @@ try {
62
66
 
63
67
  console.log('📦 步骤 2/5: 安装依赖...');
64
68
  try {
65
- execSync('npm install && npm install @lmy54321/design-system tailwindcss @tailwindcss/vite react-router-dom motion', {
66
- cwd,
67
- stdio: 'inherit'
68
- });
69
+ execSync('npm install && npm install @lmy54321/design-system tailwindcss @tailwindcss/vite react-router-dom motion', execOptions);
69
70
  console.log('✅ 依赖安装完成\n');
70
71
  } catch (error) {
71
- console.error('❌ 依赖安装失败');
72
+ console.error('❌ 依赖安装失败:', error.message);
72
73
  process.exit(1);
73
74
  }
74
75
 
@@ -172,11 +173,12 @@ try {
172
173
  console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n');
173
174
  console.log('🚀 启动开发服务器中...\n');
174
175
 
176
+ // 使用 inherit 模式启动开发服务器,保持交互式输出
175
177
  execSync('npm run dev', {
176
178
  cwd,
177
179
  stdio: 'inherit'
178
180
  });
179
181
  } catch (error) {
180
- console.error('❌ 启动开发服务器失败');
182
+ console.error('❌ 启动开发服务器失败:', error.message);
181
183
  process.exit(1);
182
184
  }