ghini
v25.12.15090126
Published
```bash npx tsc --watch npm run type-check # 类型检查(不生成文件) npm run build # 编译 TypeScript + 打包 + 更新版本号 ```
Readme
一个标准 TypeScript 2025 的 npm 库脚手架
开发
npx tsc --watch
npm run type-check # 类型检查(不生成文件)
npm run build # 编译 TypeScript + 打包 + 更新版本号发布
npm run pub # 构建 + 发布到 npm + 提交 git🔧 TypeScript 配置亮点
moduleResolution: "bundler"- 2025 最新模块解析策略verbatimModuleSyntax: true- 严格 ESM 语法strict: true- 全部严格类型检查declaration: true- 自动生成类型声明
📦 创建新库
全文件替换 ghini 为新库名:
Remove-Item -Recurse -Force .git
git init
git add .
git commit -m "Initial commit"
git branch -M ghini
git remote add origin [email protected]:xghini/mynpm.git
git push -u origin ghini
npm run pub