-
Notifications
You must be signed in to change notification settings - Fork 536
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
test: get all public exports from package entrypoints #3733
Conversation
|
size-limit report 📦
|
script/get-exports.mjs
Outdated
@@ -0,0 +1,453 @@ | |||
import {existsSync} from 'node:fs' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is super cool!
I'm a bit confused about where would we like to call this script from? from within ./script/build
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddharthkp whoops! This was my test script, removed in the latest commit since it's in the test file itself 👍
bump @siddharthkp @broccolinisoup when you get a sec 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Took me a while to understand, but now I get it 😇
Update our
exports
test to include support for additional export members, like types.Changelog
New
Changed
exports.test.ts
with a new technique for getting exports from a moduleexports
for:@primer/react
@primer/react/experimental
@primer/react/drafts
@primer/react/deprecated
Removed
Rollout strategy
None
Testing & Reviewing
Verify that the generated snapshot captures export information accurately