Skip to content

Commit

Permalink
chore: transpile ts with babel
Browse files Browse the repository at this point in the history
  • Loading branch information
ijemmao committed May 29, 2023
1 parent 26ad0aa commit 501b846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"presets": [
"next/babel",
"@babel/preset-env",
"@babel/preset-react"
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-syntax-jsx",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "rm -rf dist/ && yarn build:site && yarn build:src && cross-env NODE_ENV=build yarn build:dictionaries && yarn build:functions",
"build:functions": "rm -rf functions/src && shx cp -r ./dist ./functions/src && cp -r ./dist/dictionaries/ig-en ./functions/src/dictionaries",
"build:src": "babel -d dist/ ./src -s",
"build:src": "babel -d dist/ ./src -s --extensions '.js,.jsx,.ts,.tsx'",
"build:dictionaries": "babel-node src/dictionaries/buildDictionaries.js",
"build:site": "cross-env NEXT_PUBLIC_GA_ID=$GA_TRACKING_ID next build && yarn build:fonts && yarn build:assets",
"build:fonts": "shx cp -r ./src/public/fonts/ ./dist/fonts",
Expand Down Expand Up @@ -136,6 +136,7 @@
"yarn": "^1.22.10"
},
"devDependencies": {
"@babel/preset-typescript": "^7.21.5",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@semantic-release/changelog": "^5.0.1",
Expand Down

0 comments on commit 501b846

Please sign in to comment.