Skip to content

Commit

Permalink
feat(bun-build): Refactor scripts and move random member gen
Browse files Browse the repository at this point in the history
The scripts in package.json have been refactored for better clarity.
The random member generation code has been moved from index.build.ts
to index.ts. The index.build.ts file has been deleted as it is no
longer needed.
  • Loading branch information
ryoppippi committed Jun 12, 2024
1 parent da82338 commit cf73c20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
32 changes: 0 additions & 32 deletions examples/bun-build/index.build.ts

This file was deleted.

3 changes: 3 additions & 0 deletions examples/bun-build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ console.log(MemberSchema)
const MemberJsonSchema = typia.json.application<[IMember], '3.0'>()
console.log(JSON.stringify(MemberJsonSchema, null, 2))

/** generate random member */
const random = typia.createRandom<IMember>();
console.log(random())
9 changes: 4 additions & 5 deletions examples/bun-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"module": "index.ts",
"type": "module",
"scripts": {
"prepare": "ts-patch install && typia patch",
"test": "run-s test:*",
"test:runtime": "bun run ./index.ts",
"test:build": "npm run build && bun run ./out/*.js",
"build": "bun run ./build.ts"
"dev": "bun run --watch ./index.ts",
"start": "bun run ./index.ts",
"build": "bun build --entry ./index.ts --outdir ./out",
"prepare": "ts-patch install && typia patch"
},
"devDependencies": {
"@types/bun": "latest",
Expand Down

0 comments on commit cf73c20

Please sign in to comment.