Skip to content

Commit 787d595

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 93ae050 commit 787d595

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": "node-diff3",
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
"npm-run-all2": "^8.0.4",
1111
},
@@ -40,7 +40,7 @@
4040

4141
"@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="],
4242

43-
"@types/bun": ["@types/bun@1.3.0", "", { "dependencies": { "bun-types": "1.3.0" } }, "sha512-+lAGCYjXjip2qY375xX/scJeVRmZ5cY0wyHYyCYxNcdEXrQ4AOe3gACgd4iQ8ksOslJtW4VNxBJ8llUwc3a6AA=="],
43+
"@types/bun": ["@types/bun@1.3.1", "", { "dependencies": { "bun-types": "1.3.1" } }, "sha512-4jNMk2/K9YJtfqwoAa28c8wK+T7nvJFOjxI4h/7sORWcypRNxBpr+TPNaCfVWq70tLCJsqoFwcf0oI0JU/fvMQ=="],
4444

4545
"@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],
4646

@@ -64,7 +64,7 @@
6464

6565
"brace-expansion": ["brace-expansion@1.1.11", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA=="],
6666

67-
"bun-types": ["bun-types@1.3.0", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-u8X0thhx+yJ0KmkxuEo9HAtdfgCBaM/aI9K90VQcQioAmkVp3SG3FkwWGibUFz3WdXAdcsqOcbU40lK7tbHdkQ=="],
67+
"bun-types": ["bun-types@1.3.1", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-NMrcy7smratanWJ2mMXdpatalovtxVggkj11bScuWuiOoXTiKIu2eVS1/7qbyI/4yHedtsn175n4Sm4JcdHLXw=="],
6868

6969
"callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="],
7070

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,22 @@
2222
],
2323
"type": "module",
2424
"exports": {
25+
"bun": "./src/diff3.mjs",
2526
"types": "./src/diff3.d.ts",
2627
"import": "./dist/diff3.mjs",
2728
"require": "./dist/diff3.cjs",
2829
"browser": "./dist/diff3.iife.js"
2930
},
3031
"scripts": {
31-
"all": "run-s clean lint build test",
32+
"all": "run-s clean lint build:js test",
3233
"clean": "bun ./scripts/clean.ts",
33-
"build": "bun ./scripts/build.ts",
34+
"build:js": "bun ./scripts/build_js.ts",
3435
"test": "bun test --dots --coverage ./test/*.js",
3536
"lint": "eslint ./src/diff3.mjs ./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
"npm-run-all2": "^8.0.4"
4243
},
@@ -45,7 +46,6 @@
4546
"access": "public"
4647
},
4748
"engines": {
48-
"bun": ">=1.3.0",
49-
"node": ">=18"
49+
"bun": ">=1.3.0"
5050
}
5151
}
File renamed without changes.

0 commit comments

Comments
 (0)