@lmy54321/design-system 1.3.15 โ†’ 1.3.17

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.15";
3764
+ var VERSION = "1.3.17";
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.15";
3743
+ var VERSION = "1.3.17";
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.15",
3
+ "version": "1.3.17",
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { execSync } from 'child_process';
3
+ import { execSync, spawn } from 'child_process';
4
4
  import { existsSync, mkdirSync, copyFileSync, cpSync, readdirSync, rmSync } from 'fs';
5
5
  import { resolve, dirname } from 'path';
6
6
  import { fileURLToPath } from 'url';
@@ -182,16 +182,30 @@ try {
182
182
  // ============================================================
183
183
 
184
184
  console.log('๐ŸŽ‰ ๆญฅ้ชค 5/5: ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จ...\n');
185
+ console.log('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”');
186
+ console.log('โœจ ้กน็›ฎๅˆๅง‹ๅŒ–ๅฎŒๆˆ๏ผ');
187
+ console.log('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n');
188
+ console.log('๐Ÿš€ ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จไธญ...\n');
189
+
185
190
  try {
186
- console.log('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”');
187
- console.log('โœจ ้กน็›ฎๅˆๅง‹ๅŒ–ๅฎŒๆˆ๏ผ');
188
- console.log('โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n');
189
- console.log('๐Ÿš€ ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จไธญ...\n');
190
-
191
- // ไฝฟ็”จ inherit ๆจกๅผๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จ๏ผŒไฟๆŒไบคไบ’ๅผ่พ“ๅ‡บ
192
- execSync('npm run dev', {
193
- cwd,
194
- stdio: 'inherit'
191
+ // ไฝฟ็”จ spawn ่€Œ้ž execSync๏ผŒ้ฟๅ…้˜ปๅกž๏ผŒๅŒๆ—ถไฟๆŒๅฎžๆ—ถ่พ“ๅ‡บ
192
+ const devServer = spawn('npm', ['run', 'dev'], {
193
+ cwd,
194
+ stdio: 'inherit',
195
+ shell: true
196
+ });
197
+
198
+ // ็›‘ๅฌ่ฟ›็จ‹ไบ‹ไปถ
199
+ devServer.on('error', (error) => {
200
+ console.error('โŒ ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จๅคฑ่ดฅ:', error.message);
201
+ process.exit(1);
202
+ });
203
+
204
+ devServer.on('exit', (code) => {
205
+ if (code !== 0) {
206
+ console.error(`โŒ ๅผ€ๅ‘ๆœๅŠกๅ™จๅผ‚ๅธธ้€€ๅ‡บ (code ${code})`);
207
+ process.exit(code);
208
+ }
195
209
  });
196
210
  } catch (error) {
197
211
  console.error('โŒ ๅฏๅŠจๅผ€ๅ‘ๆœๅŠกๅ™จๅคฑ่ดฅ:', error.message);