-
Notifications
You must be signed in to change notification settings - Fork 18
Update flags package json #62
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
@@ -27,20 +27,20 @@ | |||
"require": "./dist/index.cjs" | |||
}, | |||
"./next": { | |||
"import": "./dist/next/index.js", | |||
"require": "./dist/next/index.cjs" | |||
"import": "./dist/next.js", |
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.
I think I've ran into issues when doing this in the past, either for exports
or typesVersions
, especially when importing this package.
Did you test it with a snapshot release?
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.
I've been iterating on the examples so far, but once they're passing, I'm looking to test a snapshot on an example ensuring it has legacy module resolution (moduleResolution: node
)
Tested using https://arethetypeswrong.github.io/ ( And on a preview deployment of our docs |
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.
Looks good, thank you! I'd make this a patch
instead of a minor
as functionality has not changed.
Primary changes:
tsup.config.js
entry
to drop the/index
suffix.Additional changes:
clean:true
for tsup to drop the rimraf dependencynode:
imports as external instead of bundling them