Skip to content

Commit

Permalink
build with esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Walker-GM committed May 24, 2024
1 parent 739da33 commit 8b05deb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/router/.babelrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions packages/router/build.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { build } from '@redwoodjs/framework-tools'

await build()
5 changes: 3 additions & 2 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"skip-nav.css"
],
"scripts": {
"build": "yarn build:js && yarn build:types",
"build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\"",
"build": "tsx ./build.mts && yarn build:types",
"build:pack": "yarn pack -o redwoodjs-router.tgz",
"build:types": "tsc --build --verbose",
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
Expand All @@ -32,12 +31,14 @@
"devDependencies": {
"@babel/cli": "7.24.5",
"@babel/core": "^7.22.20",
"@redwoodjs/framework-tools": "workspace:*",
"@testing-library/jest-dom": "6.4.5",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"react": "19.0.0-beta-04b058868c-20240508",
"react-dom": "19.0.0-beta-04b058868c-20240508",
"tstyche": "1.1.0",
"tsx": "4.10.3",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8537,13 +8537,15 @@ __metadata:
"@babel/core": "npm:^7.22.20"
"@babel/runtime-corejs3": "npm:7.24.5"
"@redwoodjs/auth": "workspace:*"
"@redwoodjs/framework-tools": "workspace:*"
"@testing-library/jest-dom": "npm:6.4.5"
"@types/react": "npm:^18.2.55"
"@types/react-dom": "npm:^18.2.19"
core-js: "npm:3.37.1"
react: "npm:19.0.0-beta-04b058868c-20240508"
react-dom: "npm:19.0.0-beta-04b058868c-20240508"
tstyche: "npm:1.1.0"
tsx: "npm:4.10.3"
typescript: "npm:5.4.5"
vitest: "npm:1.6.0"
peerDependencies:
Expand Down

0 comments on commit 8b05deb

Please sign in to comment.