@lmy54321/design-system 1.3.13 → 1.3.14
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/scripts/init.mjs +11 -7
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -3740,7 +3740,7 @@ function GridSystemDocs() {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
|
|
3742
3742
|
// index.ts
|
|
3743
|
-
var VERSION = "1.3.
|
|
3743
|
+
var VERSION = "1.3.14";
|
|
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
package/scripts/init.mjs
CHANGED
|
@@ -26,7 +26,7 @@ console.log('⏳ 这个过程会自动完成,包括:创建项目、安装依
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
// ============================================================
|
|
29
|
-
// 步骤 0:
|
|
29
|
+
// 步骤 0: 目录检查(不删除任何文件,让 Vite 处理冲突)
|
|
30
30
|
// ============================================================
|
|
31
31
|
|
|
32
32
|
console.log('🔍 检查目录状态...');
|
|
@@ -36,12 +36,7 @@ try {
|
|
|
36
36
|
);
|
|
37
37
|
|
|
38
38
|
if (files.length > 0) {
|
|
39
|
-
console.log('
|
|
40
|
-
for (const file of files) {
|
|
41
|
-
const filePath = resolve(cwd, file);
|
|
42
|
-
rmSync(filePath, { recursive: true, force: true });
|
|
43
|
-
}
|
|
44
|
-
console.log('✅ 目录已清理\n');
|
|
39
|
+
console.log('✅ 目录非空,将覆盖已有文件\n');
|
|
45
40
|
} else {
|
|
46
41
|
console.log('✅ 目录为空\n');
|
|
47
42
|
}
|
|
@@ -56,6 +51,15 @@ try {
|
|
|
56
51
|
|
|
57
52
|
console.log('📦 步骤 1/5: 创建 Vite 项目...');
|
|
58
53
|
try {
|
|
54
|
+
// 如果是非空目录,先删除可能冲突的 Vite 默认文件
|
|
55
|
+
const conflictFiles = ['src', 'public', 'index.html', 'vite.config.ts', 'tsconfig.json', 'package.json'];
|
|
56
|
+
for (const file of conflictFiles) {
|
|
57
|
+
const filePath = resolve(cwd, file);
|
|
58
|
+
if (existsSync(filePath)) {
|
|
59
|
+
rmSync(filePath, { recursive: true, force: true });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
59
63
|
execSync('npm create vite@latest . -- --template react-ts --yes', {
|
|
60
64
|
...execOptions,
|
|
61
65
|
timeout: 120000 // 2 分钟
|