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

Add typecheck scripts #1072

Merged
merged 5 commits into from
Jul 20, 2020
Merged

Add typecheck scripts #1072

merged 5 commits into from
Jul 20, 2020

Conversation

hasparus
Copy link
Member

👋

I added a typecheck step as mentioned by @blainekasten in #668 (comment).

It feels a bit wasteful to run this on every change, and it could be probably made faster with some TS composite projects and GitHub actions wizardry, but I guess it's not bad for now.

The .d.ts for for @theme-ui/color-modes was needed to type values reexported from theme-ui.
This should make Theme UI TypeScript feel less "early access" for users.


BTW I tried using lerna exec instead of lerna run to leave the package.json files in packages intact, but it resulted in incomprehensible bash one-liner 😅

@hasparus hasparus requested review from jxnblk and mxstbr July 18, 2020 10:00
@@ -6,7 +6,8 @@
"peerDependencies": {
"gatsby": "^2.13.1",
"react": "^16.8.0",
"react-dom": "^16.8.0"
"react-dom": "^16.8.0",
"typecheck": "tsc --noEmit"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Slipped into the wrong line here :)

Copy link
Member Author

Choose a reason for hiding this comment

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

oh wow :D what have I done...

Copy link
Member

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

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

Peeeerfect!! 💯

@mxstbr mxstbr merged commit 8cfcb2d into system-ui:master Jul 20, 2020
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.

3 participants