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
[all] Bump ncc to 0.31.1 #6700
[all] Bump ncc to 0.31.1 #6700
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6700 +/- ##
=======================================
Coverage 54.98% 54.98%
=======================================
Files 85 85
Lines 3592 3592
Branches 841 841
=======================================
Hits 1975 1975
Misses 1613 1613
Partials 4 4 Continue to review full report at Codecov.
|
return 1; | ||
} | ||
|
||
if (func.default) { |
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 believe this is always going to be true.
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 of the commands are TS and some are JS (notable secrets.js
) so this might be different
const metric = metrics(); | ||
let exitCode; | ||
const eventCategory = 'Exit Code'; | ||
|
||
try { | ||
const start = Date.now(); | ||
const full = require(`./commands/${targetCommand}`).default; | ||
exitCode = await full(client); | ||
let func: any; |
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.
let func: any; | |
let func: (c: Client) => Promise<number>; |
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 was failing for me which is why I left it as any
.
I'll try again in another PR and see if we can get this more strict.
Another option is to move the imports to the top because they're already bundled into a single file via ncc.
https://github.com/vercel/ncc/releases/tag/0.31.0
https://github.com/vercel/ncc/releases/tag/0.31.1