Skip to content

Commit

Permalink
refactor(examples/esbuild): replace dax-sh with bun
Browse files Browse the repository at this point in the history
This commit replaces the usage of dax-sh with bun in the esbuild example.
The change includes updating the build script and removing dax-sh from
the dependencies. The '@types/bun' package is added to the dependencies
to provide TypeScript types for bun. The usage of tsx is also removed.
  • Loading branch information
ryoppippi committed Jul 29, 2024
1 parent d8c72ca commit b5ee6e7
Showing 3 changed files with 5 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/esbuild/build.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable no-console, unicorn/prefer-top-level-await */

import { build } from 'esbuild'
import { $ } from 'bun';
import UnpluginTypia from '@ryoppippi/unplugin-typia/esbuild';
import $ from 'dax-sh';

const outDir = 'dist' as const

10 changes: 4 additions & 6 deletions examples/esbuild/package.json
Original file line number Diff line number Diff line change
@@ -3,19 +3,17 @@
"name": "example-esbuild",
"version": "1.0.0",
"scripts": {
"build": "tsx build.ts",
"watch": "tsx watch build.ts",
"build": "bun build.ts",
"test": "npm run build && node dist/main.mjs",
"prepare": "ts-patch install && typia patch"
},
"devDependencies": {
"dax-sh": "^0.41.0",
"@ryoppippi/unplugin-typia": "workspace:*",
"@types/bun": "^1.1.6",
"esbuild": "^0.20.2",
"tsx": "^4.7.2",
"ts-patch": "^3.2.1",
"tslib": "^2.4.1",
"typescript": "~5.5.3",
"@ryoppippi/unplugin-typia": "workspace:*"
"typescript": "~5.5.3"
},
"dependencies": {
"typia": "^6.5.2"

0 comments on commit b5ee6e7

Please sign in to comment.