Skip to content

Commit 9e32542

Browse files
committed
fix: build process
1 parent 3e288e7 commit 9e32542

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
uses: oven-sh/setup-bun@v2
4646

4747
- name: Install Dependencies
48-
run: |
49-
bun install
48+
run: bun install
49+
50+
- name: Build
51+
run: bun build
5052

5153
- name: Publish to NPM
5254
run: bun publish -p --access public

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"name": "@rohitaryal/whisk-api",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"type": "module",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
77
"files": [
88
"dist"
99
],
10+
"exports": {
11+
"import": "./dist/index.js",
12+
"require": "./dist/index.js"
13+
},
1014
"private": false,
1115
"scripts": {
1216
"test": "bun test --concurrent",
13-
"build": "tsc && chmod +x ./dist/index.js"
17+
"build": "tsc && chmod +x ./dist/Cli.js"
1418
},
1519
"devDependencies": {
1620
"@types/bun": "^1.3.5",
@@ -44,9 +48,5 @@
4448
"url": "https://github.com/rohitaryal/whisk-api/issues"
4549
},
4650
"homepage": "https://github.com/rohitaryal/whisk-api#readme",
47-
"directories": {
48-
"example": "examples",
49-
"test": "tests"
50-
},
5151
"description": "Unofficial API for Whisk image generation."
5252
}

0 commit comments

Comments
 (0)