@lmy54321/design-system 1.3.18 → 1.3.20
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 +2 -2
- package/scripts/init.mjs +11 -3
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.20";
|
|
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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmy54321/design-system",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
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",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"design-system": "
|
|
9
|
+
"design-system-init": "scripts/init.mjs"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
package/scripts/init.mjs
CHANGED
|
@@ -10,7 +10,15 @@ const __dirname = dirname(__filename);
|
|
|
10
10
|
|
|
11
11
|
// 获取脚本所在目录(npm 包目录)
|
|
12
12
|
const packageDir = resolve(__dirname, '..');
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
// 支持传入文件夹名作为第一个参数
|
|
15
|
+
const projectName = process.argv[2];
|
|
16
|
+
let cwd = process.cwd();
|
|
17
|
+
|
|
18
|
+
if (projectName) {
|
|
19
|
+
cwd = resolve(cwd, projectName);
|
|
20
|
+
mkdirSync(cwd, { recursive: true });
|
|
21
|
+
}
|
|
14
22
|
|
|
15
23
|
// 全局执行选项:使用 pipe 而非 inherit,便于 AI 自动化处理
|
|
16
24
|
const execOptions = {
|
|
@@ -20,9 +28,9 @@ const execOptions = {
|
|
|
20
28
|
maxBuffer: 10 * 1024 * 1024 // 增加缓冲区到 10MB,防止超时
|
|
21
29
|
};
|
|
22
30
|
|
|
23
|
-
console.log('\n🚀 @lmy54321/design-system
|
|
31
|
+
console.log('\n🚀 @lmy54321/design-system 项目初始化\n');
|
|
24
32
|
console.log(`📂 初始化位置: ${cwd}`);
|
|
25
|
-
console.log('⏳
|
|
33
|
+
console.log('⏳ 这个过程会自动完成:创建项目、安装依赖、复制模板\n');
|
|
26
34
|
|
|
27
35
|
|
|
28
36
|
// ============================================================
|