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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)