@lmy54321/design-system 1.3.14 → 1.3.15

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.14";
3764
+ var VERSION = "1.3.15";
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.14";
3743
+ var VERSION = "1.3.15";
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.14",
3
+ "version": "1.3.15",
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
@@ -46,14 +46,15 @@ try {
46
46
  }
47
47
 
48
48
  // ============================================================
49
- // 步骤 1: 创建 Vite 项目
49
+ // 步骤 1: 创建 Vite 项目(不删除 package.json)
50
50
  // ============================================================
51
51
 
52
52
  console.log('📦 步骤 1/5: 创建 Vite 项目...');
53
53
  try {
54
- // 如果是非空目录,先删除可能冲突的 Vite 默认文件
55
- const conflictFiles = ['src', 'public', 'index.html', 'vite.config.ts', 'tsconfig.json', 'package.json'];
56
- for (const file of conflictFiles) {
54
+ // 仅删除可能冲突的项目文件,但绝对不删除 package.json!
55
+ // npm create vite 自己生成 package.json,然后再在步骤 2 安装额外依赖
56
+ const filesToRemove = ['src', 'public', 'index.html', 'vite.config.ts', 'vite.config.js', 'tsconfig.json', 'dist'];
57
+ for (const file of filesToRemove) {
57
58
  const filePath = resolve(cwd, file);
58
59
  if (existsSync(filePath)) {
59
60
  rmSync(filePath, { recursive: true, force: true });