Skip to content

Commit afa6afd

Browse files
committed
Remove Node from engines field
This also adds the "bun" export specifier to package.json, which would allow consumers to import typescript files directly without going through a bundle. This also updates @types/bun
1 parent 2a22633 commit afa6afd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bun.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "osm-auth",
66
"devDependencies": {
77
"@eslint/js": "^9.38.0",
8-
"@types/bun": "^1.3.0",
8+
"@types/bun": "^1.3.1",
99
"eslint": "^9.38.0",
1010
"globals": "^16.4.0",
1111
"node-localstorage": "^3.0.5",
@@ -43,7 +43,7 @@
4343

4444
"@humanwhocodes/retry": ["@humanwhocodes/[email protected]", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="],
4545

46-
"@types/bun": ["@types/[email protected].0", "", { "dependencies": { "bun-types": "1.3.0" } }, "sha512-+lAGCYjXjip2qY375xX/scJeVRmZ5cY0wyHYyCYxNcdEXrQ4AOe3gACgd4iQ8ksOslJtW4VNxBJ8llUwc3a6AA=="],
46+
"@types/bun": ["@types/[email protected].1", "", { "dependencies": { "bun-types": "1.3.1" } }, "sha512-4jNMk2/K9YJtfqwoAa28c8wK+T7nvJFOjxI4h/7sORWcypRNxBpr+TPNaCfVWq70tLCJsqoFwcf0oI0JU/fvMQ=="],
4747

4848
"@types/estree": ["@types/[email protected]", "", {}, "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw=="],
4949

@@ -67,7 +67,7 @@
6767

6868
"brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="],
6969

70-
"bun-types": ["[email protected].0", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
70+
"bun-types": ["[email protected].1", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-NMrcy7smratanWJ2mMXdpatalovtxVggkj11bScuWuiOoXTiKIu2eVS1/7qbyI/4yHedtsn175n4Sm4JcdHLXw=="],
7171

7272
"callsites": ["[email protected]", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="],
7373

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,30 @@
2121
],
2222
"type": "module",
2323
"exports": {
24+
"bun": "./src/osm-auth.mjs",
2425
"types": "./src/osm-auth.d.ts",
2526
"import": "./dist/osm-auth.mjs",
2627
"require": "./dist/osm-auth.cjs",
2728
"browser": "./dist/osm-auth.iife.js"
2829
},
2930
"scripts": {
30-
"all": "run-s clean lint build test",
31-
"build": "bun ./scripts/build.ts",
31+
"all": "run-s clean lint build:js test",
32+
"build:js": "bun ./scripts/build_js.ts",
3233
"clean": "bun ./scripts/clean.ts",
3334
"lint": "eslint ./src/osm-auth.mjs ./test/*.js",
3435
"start": "bun ./scripts/server.ts",
3536
"test": "bun test --dots --coverage ./test/*.js"
3637
},
3738
"devDependencies": {
3839
"@eslint/js": "^9.38.0",
39-
"@types/bun": "^1.3.0",
40+
"@types/bun": "^1.3.1",
4041
"eslint": "^9.38.0",
4142
"globals": "^16.4.0",
4243
"node-localstorage": "^3.0.5",
4344
"npm-run-all2": "^8.0.4",
4445
"typescript": "^5.9.3"
4546
},
4647
"engines": {
47-
"bun": ">=1.3.0",
48-
"node": ">=18.18"
48+
"bun": ">=1.3.0"
4949
}
5050
}
File renamed without changes.

0 commit comments

Comments
 (0)