Skip to content

Commit 638ceb3

Browse files
committed
Update pkg
Add bun types and clean script
1 parent 1f88c57 commit 638ceb3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: oven-sh/setup-bun@v2
2525

2626
- name: Install dependencies
27-
run: npm install --no-lockfile
27+
run: bun i
2828

2929
- name: Build the project
3030
run: bun run build

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"shader",
88
"component"
99
],
10-
"version": "1.0.5",
10+
"version": "1.0.0",
1111
"main": "dist/core/index.js",
1212
"module": "dist/core/index.esm.js",
1313
"publishConfig": {
@@ -27,6 +27,7 @@
2727
"LICENSE"
2828
],
2929
"devDependencies": {
30+
"@types/bun": "^1.1.13",
3031
"@types/react": "^18.3.12",
3132
"@types/react-dom": "^18.3.1",
3233
"ts-node": "^10.9.2",
@@ -40,18 +41,19 @@
4041
".": {
4142
"require": "./dist/core/index.js",
4243
"import": "./dist/core/index.js",
43-
"types": "./dist/core/index.d.ts"
44+
"types": "./dist/core/index.d.ts"
4445
},
4546
"./react": {
4647
"require": "./dist/react/index.js",
4748
"import": "./dist/react/index.js",
48-
"types": "./dist/react/index.d.ts"
49+
"types": "./dist/react/index.d.ts"
4950
}
5051
},
5152
"scripts": {
52-
"build:library": "bun ./build.ts",
53-
"build:types": "bunx tsc",
54-
"build": "bun build:library && bun build:types && cp -R ./src/types ./dist/types"
53+
"clean": "rm -rf dist",
54+
"build:library": "bun ./build.ts",
55+
"build:types": "bunx tsc",
56+
"build": "bun run clean && bun build:library && bun build:types && cp -R ./src/types ./dist/types"
5557
},
5658
"type": "module",
5759
"types": "dist/types/index.d.ts"

0 commit comments

Comments
 (0)