Skip to content

Commit

Permalink
Use Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
mkobayashime committed Oct 14, 2024
1 parent b55ef3f commit 7e76de1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1,620 deletions.
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
biome = pnpm exec biome
typecheck = pnpm exec tsc --noEmit
ts-node = pnpm exec tsx
biome = bunx biome
typecheck = bunx tsc --noEmit
ts-node = bunx tsx

node_modules: package.json pnpm-*.yaml
pnpm install
@touch node_modules
node_modules: PHONY
bun install

run: node_modules PHONY
$(ts-node) src/index.ts
bun run src/index.ts

lint: node_modules PHONY
$(biome) check .
Expand All @@ -22,6 +21,6 @@ typecheck.watch: node_modules PHONY
$(typecheck) --watch

clear: node_modules PHONY
pnpm exec rimraf dist
bunx rimraf dist

PHONY:
Binary file added bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "twins-announcements",
"version": "1.0.0",
"main": "index.js",
"packageManager": "[email protected]+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca",
"author": "Masaki Kobayashi <[email protected]>",
"license": "MIT",
"private": true,
Expand All @@ -21,6 +20,6 @@
"typescript": "5.6.2"
},
"scripts": {
"preinstall": "npx only-allow pnpm"
"preinstall": "npx only-allow bun"
}
}
Loading

0 comments on commit 7e76de1

Please sign in to comment.