@ghini/xstart 26.1.5151139 → 26.1.5151627
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/README.md +4 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
# 一个标准 TypeScript 2026 的 npm 库脚手架
|
|
2
2
|
|
|
3
|
-
### 开发
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
pnpm tsc --watch
|
|
7
|
-
pnpm type-check # 类型检查(不生成文件)
|
|
8
|
-
pnpm build # 编译 TypeScript + 打包 + 更新版本号
|
|
9
|
-
```
|
|
10
|
-
|
|
11
3
|
### 发布
|
|
12
4
|
|
|
13
5
|
```bash
|
|
6
|
+
pnpm build # 编译 TypeScript + 打包 + 更新版本号
|
|
7
|
+
pnpm checkpub # 检查发布内容
|
|
14
8
|
pnpm pub # 构建 + 发布到 npm + 提交 git
|
|
15
9
|
```
|
|
16
10
|
|
|
17
|
-
## 🔧
|
|
18
|
-
|
|
19
|
-
- `moduleResolution: "bundler"` - 2025 最新模块解析策略
|
|
20
|
-
- `verbatimModuleSyntax: true` - 严格 ESM 语法
|
|
21
|
-
- `strict: true` - 全部严格类型检查
|
|
22
|
-
- `declaration: true` - 自动生成类型声明
|
|
23
|
-
|
|
24
|
-
如果需要 pnpm 迁移:
|
|
11
|
+
## 🔧 如果需要 pnpm 迁移:
|
|
25
12
|
|
|
26
13
|
```ps1
|
|
27
14
|
pnpm import
|
|
@@ -36,6 +23,7 @@ pnpm tsc --watch
|
|
|
36
23
|
全文件替换 `xstart` 为新库名:
|
|
37
24
|
|
|
38
25
|
```bash
|
|
26
|
+
rm -rf .git
|
|
39
27
|
Remove-Item -Recurse -Force .git
|
|
40
28
|
git init
|
|
41
29
|
git add .
|