Skip to content

Commit 57cb4ab

Browse files
committed
Update @types/bun
This also adds the "bun" export specifier to package.json, which would allow consumers to import typescript files directly without going through a bundle.
1 parent c1f1450 commit 57cb4ab

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@eslint/js": "^9.38.0",
2525
"@types/geojson": "^7946.0.16",
26-
"@types/bun": "^1.3.0",
26+
"@types/bun": "^1.3.1",
2727
"eslint": "^9.38.0",
2828
"npm-run-all2": "^8.0.4",
2929
"typedoc": "^0.28.14",
@@ -40,7 +40,6 @@
4040
},
4141
"private": true,
4242
"engines": {
43-
"bun": ">=1.3.0",
44-
"node": ">=18.18"
43+
"bun": ">=1.3.0"
4544
}
4645
}

packages/math/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@
1919
"typedocMain": "./src/math.ts",
2020
"source": "./src/math.ts",
2121
"exports": {
22+
"bun": "./src/math.ts",
2223
"types": "./dist/math.d.ts",
2324
"import": "./dist/math.mjs",
2425
"require": "./dist/math.cjs"
2526
},
2627
"scripts": {
2728
"all": "run-s clean build lint test",
28-
"build": "run-p build:js build:types",
29+
"build": "run-p build:js build:ts",
2930
"build:js": "bun ./scripts/build.ts",
30-
"build:types": "tsc",
31+
"build:ts": "tsc",
3132
"clean": "bun ./scripts/clean.ts",
3233
"lint": "eslint .",
3334
"test": "bun test --dots --coverage ./test"

packages/util/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@
1919
"typedocMain": "./src/util.ts",
2020
"source": "./src/util.ts",
2121
"exports": {
22+
"bun": "./src/util.ts",
2223
"types": "./dist/util.d.ts",
2324
"import": "./dist/util.mjs",
2425
"require": "./dist/util.cjs"
2526
},
2627
"scripts": {
2728
"all": "run-s clean build lint test",
28-
"build": "run-p build:js build:types",
29+
"build": "run-p build:js build:ts",
2930
"build:js": "bun ./scripts/build.ts",
30-
"build:types": "tsc",
31+
"build:ts": "tsc",
3132
"clean": "bun ./scripts/clean.ts",
3233
"lint": "eslint .",
3334
"test": "bun test --dots --coverage ./test"

0 commit comments

Comments
 (0)