-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix(build): switch to esbuild and tsc #279
Conversation
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.
Some quick things I noticed
The errors are because you need to explicitly mark type imports/exports |
Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com>
Co-authored-by: wolfy1339 <4595477+wolfy1339@users.noreply.github.com>
@wolfy1339 thanks for the tip! After applying your changes I'm still seeing the same errors...is there another spot where an import/export is missed? |
There probably are more places in the code that need updating |
Aha! Here is what was missing. |
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, some small style issues.
🎉 This PR is included in version 6.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Replicating octokit/request.js#584 to another repo.
Consumers of this module such as oauth-methods.js#152 are seeing missing types. This PR attempts to fix that issue by getting us off of pika before additional Node deprecations can be made.
Note that when running
npm run build
locally, I see the following errors:These errors are not present in the CI build because
npm run build
does not appear to be run then. I believe this to be a configuration issue and I think I missed something in this repo to get this to function correctly. Tips are appreciated!Pika has been deprecated for a while now, and the project has now been archived, and because of that the released npm package is missing most of the files generated by the build step.
Uses esbuild to transpile the TS source code into an ESM source, NodeJs bundle, and a browser bundle
Uses the TypeScript compiler to generate the types.
Behavior
Before the change?
dist-node
,dist-types
,dist-web
... even though they are generated correctly.After the change?
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: Bug
Type: Maintenance