Skip to content

Commit 459c372

Browse files
committed
feat: fixed autobuild for npx use - fingers crossed
1 parent f5b428d commit 459c372

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
issues: write # to be able to comment on released issues
1818
pull-requests: write # to be able to comment on released pull requests
1919
id-token: write # to enable use of OIDC for npm provenance
20+
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
@@ -32,7 +33,10 @@ jobs:
3233
run: npm ci
3334

3435
- name: Test
35-
run: npm test
36+
run: npm test
37+
38+
- name: Build
39+
run: npm run build # This ensures dist/ is created for npx
3640

3741
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
3842
run: npm audit signatures

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
"name": "wazzan"
88
},
99
"type": "module",
10+
"main": "./dist/index.js",
11+
"exports": {
12+
".": "./dist/index.js"
13+
},
1014
"bin": {
1115
"mcp-coincap-jj": "./dist/index.js"
1216
},
1317
"files": [
14-
"dist",
15-
"dist/**/*"
18+
"dist"
1619
],
17-
"main": "./dist/index.js",
1820
"scripts": {
1921
"build": "tsc && shx chmod +x dist/*.js",
2022
"prepare": "npm run build",

0 commit comments

Comments
 (0)