Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade babel/typescript to support latest features #1172

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

scurker
Copy link
Member

@scurker scurker commented Aug 18, 2023

General cleanup of typescript/babel dependencies. Removed a few unused babel plugins, but there were some issues with import type... on #1167 that I was trying to resolve here separately.

@scurker scurker requested a review from a team as a code owner August 18, 2023 02:36
@scurker scurker changed the title chore: upgrade babel to support latest features chore: upgrade babel/typescript to support latest features Aug 18, 2023
@github-actions
Copy link
Contributor

Preview branch generated at https://babel-upgrade.d1gko6en628vir.amplifyapp.com

@@ -128,7 +127,7 @@
"style-loader": "^0.19.0",
"terser-webpack-plugin": "^5.3.6",
"ts-node": "^10.9.1",
"typescript": "^3.7.5",
"typescript": "~5.0.0",
Copy link
Member Author

@scurker scurker Aug 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prettier yells at you if it's 5.1.0 or greater 🤷

@@ -11,7 +11,6 @@
}
],
"transform-export-extensions",
"@babel/plugin-proposal-class-properties",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now included as part of preset-env

@@ -34,18 +34,15 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -115,7 +115,6 @@ IconButton.propTypes = {
as: PropTypes.elementType,
// @ts-expect-error
icon: PropTypes.string.isRequired,
// @ts-expect-error
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently none of these error anymore

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The others still error?

@@ -23,7 +23,8 @@
"release": "./scripts/release.sh"
},
"prettier": {
"singleQuote": true
"singleQuote": true,
"trailingComma": "none"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really care that much, but this keeps the existing behavior that was present before the upgrade to keep things consistent

"@babel/plugin-proposal-export-default-from": "^7.2.0",
"@babel/preset-env": "^7.8.4",
"@babel/preset-react": "^7.0.0",
"@babel/preset-stage-0": "^7.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really needed anymore

@dequejosie
Copy link
Contributor

Looks good to me!

@scurker scurker merged commit bf5d0e5 into develop Aug 18, 2023
@scurker scurker deleted the babel-upgrade branch August 18, 2023 17:13
@github-actions
Copy link
Contributor

Preview branch generated at https://babel-upgrade.d1gko6en628vir.amplifyapp.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants