Skip to content

Commit

Permalink
chore: bun support
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Sep 23, 2023
1 parent ad5a83a commit f8652b8
Show file tree
Hide file tree
Showing 9 changed files with 1,119 additions and 2,469 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit $1
bun run --no -- commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
bun run lint-staged
7 changes: 0 additions & 7 deletions jest.config.ts

This file was deleted.

52 changes: 23 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"lint:js:fix": "eslint . --cache --ext .js,.jsx,.ts,.tsx --fix",
"mrm": "mrm --preset=@bingtsingw/mrm-preset",
"prepare": "if [ -d './node_modules/husky' ]; then husky install; fi",
"release": "release-it --ci"
"release": "release-it --ci",
"test": "bun test",
"test:dev": "bun test --watch"
},
"commitlint": {
"extends": [
Expand All @@ -48,12 +50,6 @@
"trailingComma": "all"
},
"eslintConfig": {
"env": {
"jest/globals": true
},
"plugins": [
"jest"
],
"extends": [
"alloy",
"alloy/typescript"
Expand All @@ -79,32 +75,30 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@babel/core": "^7.22.5",
"@babel/eslint-parser": "^7.22.5",
"@babel/core": "^7.22.20",
"@babel/eslint-parser": "^7.22.15",
"@bingtsingw/mrm-preset": "^0.10.0",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@release-it/conventional-changelog": "^5.1.1",
"@types/jest": "^29.5.2",
"@types/lodash": "^4.14.195",
"@types/node": "^20.3.2",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@release-it/conventional-changelog": "^7.0.2",
"@types/lodash": "^4.14.199",
"@types/node": "^20.6.3",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"bun-types": "^1.0.3",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.43.0",
"eslint-config-alloy": "^5.0.0",
"eslint-plugin-jest": "^27.2.2",
"eslint": "^8.50.0",
"eslint-config-alloy": "^5.1.2",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.2.3",
"mrm": "^4.1.14",
"prettier": "^2.8.8",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.3",
"release-it": "^15.11.0",
"tsup": "^7.1.0",
"typescript": "^5.1.5"
"lint-staged": "^14.0.1",
"mrm": "^4.1.22",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-packagejson": "^2.4.5",
"release-it": "^16.1.5",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
"tsup": {
"entry": [
Expand Down
Loading

0 comments on commit f8652b8

Please sign in to comment.