Skip to content

Commit b0e12cb

Browse files
committed
chore(package): update package.json for CLI bin configuration and repository URL
- Changed the "bin" field in package.json to specify the CLI command as "tsw". - Updated the repository URL format in package.json to use the "git+" prefix. - Added steps to upgrade npm and display runtime versions in the publish-to-npm-alpha.yml workflow.
1 parent 754975b commit b0e12cb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish-to-npm-alpha.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
with:
2323
node-version: "24.x"
2424
registry-url: "https://registry.npmjs.org"
25+
- name: Upgrade npm for trusted publishing
26+
run: npm install -g npm@11.6.2
27+
- name: Show runtime versions
28+
run: node --version && npm --version
2529
- name: Install dependencies
2630
run: yarn
2731
- name: Build

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "2.0.0-alpha.10",
44
"description": "A Node.js infrastructure which is designed for improving the efficiency of locating problems, providing multiple functions for front-end developers",
55
"main": "dist/index.js",
6-
"bin": "dist/cli.js",
6+
"bin": {
7+
"tsw": "dist/cli.js"
8+
},
79
"scripts": {
810
"commitlint": "commitlint --color",
911
"test": "jest --coverage",
@@ -17,7 +19,7 @@
1719
},
1820
"repository": {
1921
"type": "git",
20-
"url": "https://github.com/Tencent/TSW.git"
22+
"url": "git+https://github.com/Tencent/TSW.git"
2123
},
2224
"keywords": [
2325
"tsw"

0 commit comments

Comments
 (0)