Skip to content

Commit

Permalink
use @babel/traverse for the traverse utility instead of @babel/core
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Sep 24, 2024
1 parent 87e0cf7 commit 4d8113d
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 105 deletions.
8 changes: 5 additions & 3 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"pattern:build": "email build -d ./components"
},
"dependencies": {
"@babel/parser": "7.24.5",
"@babel/preset-typescript": "7.24.7",
"@babel/traverse": "7.25.6",
"@react-email/components": "npm:@react-email/components@latest",
"@responsive-email/react-email": "0.0.3",
"@supabase/supabase-js": "2.45.1",
Expand All @@ -29,16 +32,14 @@
"vaul": "^0.9.1"
},
"devDependencies": {
"@babel/core": "7.24.5",
"@babel/parser": "7.24.5",
"@babel/preset-typescript": "7.24.7",
"@next/eslint-plugin-next": "14.2.3",
"@radix-ui/colors": "1.0.1",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-tooltip": "1.1.1",
"@types/babel__core": "7.20.5",
"@types/babel__traverse": "7.20.6",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand All @@ -54,6 +55,7 @@
"tailwindcss": "3.4.3",
"tsconfig": "workspace:*",
"typescript": "5.1.6",
"webpack": "5.94.0",
"zod": "3.23.8"
}
}
2 changes: 1 addition & 1 deletion apps/web/src/app/components/get-components.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from "node:fs";
import path from "node:path";
import { traverse } from "@babel/core";
import traverse from "@babel/traverse";
import { parse } from "@babel/parser";
import { z } from "zod";
import { render } from "@react-email/components";
Expand Down
Loading

0 comments on commit 4d8113d

Please sign in to comment.