@ghini/xstart 25.12.10042414 → 25.12.29102817

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.
Files changed (2) hide show
  1. package/README.md +13 -30
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,34 +1,8 @@
1
1
  # 一个标准 TypeScript 2025 的 npm 库脚手架
2
2
 
3
- ## 🎯 特性
4
-
5
- - ✅ **TypeScript 5.7+** - 使用最新的 TypeScript 配置
6
- - ✅ **严格类型检查** - 启用 `strict` 模式,确保类型安全
7
- - ✅ **现代 ESM** - 原生 ES Module 支持
8
- - ✅ **自动类型生成** - 自动生成 `.d.ts` 类型声明文件
9
- - ✅ **Source Map** - 完整的源码映射支持
10
-
11
- ## 📁 目录结构
12
-
13
- ```
14
- src/ # TypeScript 源码
15
- ├── main.ts
16
- └── lib/
17
- ├── index.ts
18
- └── start.ts
19
-
20
- dist/ # 编译产物(发布到 npm)
21
- ├── main.js
22
- ├── main.d.ts
23
- └── lib/...
24
-
25
- dev/ # 开发测试副本(与 dist 相同)
26
- ```
27
-
28
- ## 🚀 使用方法
29
-
30
3
  ### 开发
31
4
  ```bash
5
+ npx tsc --watch
32
6
  npm run type-check # 类型检查(不生成文件)
33
7
  npm run build # 编译 TypeScript + 打包 + 更新版本号
34
8
  ```
@@ -45,8 +19,15 @@ npm run pub # 构建 + 发布到 npm + 提交 git
45
19
  - `strict: true` - 全部严格类型检查
46
20
  - `declaration: true` - 自动生成类型声明
47
21
 
48
- ## 📦 创建新库
22
+ 如果需要pnpm迁移:
23
+ ```ps1
24
+ pnpm import
25
+ Remove-Item -Recurse -Force node_modules
26
+ Remove-Item package-lock.json
27
+ pnpm install
28
+ ```
49
29
 
30
+ ## 📦 创建新库
50
31
  全文件替换 `xstart` 为新库名:
51
32
  ```bash
52
33
  Remove-Item -Recurse -Force .git
@@ -56,5 +37,7 @@ git commit -m "Initial commit"
56
37
  git branch -M xstart
57
38
  git remote add origin git@github.com:xghini/mynpm.git
58
39
  git push -u origin xstart
59
- npm run pub
60
- ```
40
+ pnpm pub
41
+ ```
42
+
43
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghini/xstart",
3
- "version": "25.12.10042414",
3
+ "version": "25.12.29102817",
4
4
  "scripts": {
5
5
  "type-check": "tsc --noEmit",
6
6
  "build": "node ./build.js",