@ghini/xstart 26.1.6192153 → 26.1.6202021

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 +3 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  $lib = "xstart"
11
11
  git clone -b xstart git@github.com:xghini/mynpm.git $lib && cd $lib
12
12
  (Get-Content package.json) -replace 'xstart', $lib | Set-Content package.json
13
- (Get-Content README.md) -replace 'xstart', $lib | Set-Content README.md
13
+ (Get-Content app/0.ts) -replace 'xstart', $lib | Set-Content app/0.ts
14
14
  Remove-Item -Recurse -Force .git
15
15
  git init && git add . && git commit -m "init $lib"
16
16
  git branch -M $lib && git remote add origin git@github.com:xghini/mynpm.git
@@ -22,9 +22,9 @@ git push -u origin $lib && pnpm i && pnpm pub
22
22
  ```bash
23
23
  lib="xstart"
24
24
  git clone -b xstart git@github.com:xghini/mynpm.git $lib && cd $lib
25
- sed -i "s/xstart/$lib/g" package.json README.md
25
+ perl -i -pe "s/xstart/$lib/g" package.json app/0.ts
26
26
  rm -rf .git
27
- git init && git add . && git commit -m "init: $lib from xstart template"
27
+ git init && git add . && git commit -m "init $lib"
28
28
  git branch -M $lib && git remote add origin git@github.com:xghini/mynpm.git
29
29
  git push -u origin $lib && pnpm i && pnpm pub
30
30
  ```
@@ -40,18 +40,6 @@ pnpm build # 编译 + 打包 + 更新版本号
40
40
  pnpm pub # 构建 + 发布 + 提交
41
41
  ```
42
42
 
43
- ## 🛠️ 内置工具
44
-
45
- ```typescript
46
- import {xpath, exefile, exedir} from '@ghini/xstart';
47
-
48
- xpath('./config.json'); // 相对于入口脚本解析路径
49
- xpath('../data/file.txt'); // 自动处理 ../
50
- xpath(); // 获取入口脚本目录
51
- xpath('C:/abs/path'); // 绝对路径直接返回
52
- xpath('file:///C:/path/file.ts'); // 自动剥离 file:/// 协议
53
- ```
54
-
55
43
  ## 💡 核心设计
56
44
 
57
45
  - **源码直连**:开发态 exports 指向 `src/*.ts`,Node 24 原生支持直接运行 TypeScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghini/xstart",
3
- "version": "26.1.6192153",
3
+ "version": "26.1.6202021",
4
4
  "type": "module",
5
5
  "author": "Ghini",
6
6
  "license": "MIT",