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

[all] Bump ncc to 0.31.1 #6700

Merged
merged 6 commits into from Sep 13, 2021
Merged

[all] Bump ncc to 0.31.1 #6700

merged 6 commits into from Sep 13, 2021

Conversation

styfle
Copy link
Member

@styfle styfle commented Sep 9, 2021

@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #6700 (eed127d) into main (6e1d708) will not change coverage.
The diff coverage is n/a.

❗ Current head eed127d differs from pull request most recent head 2659178. Consider uploading reports for the commit 2659178 to get more accurate results
Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e1d708...2659178. Read the comment docs.

@styfle styfle changed the title [all] Bump ncc to 0.31.0 [all] Bump ncc to 0.31.1 Sep 13, 2021
return 1;
}

if (func.default) {
Copy link
Member

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.

Copy link
Member Author

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;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let func: any;
let func: (c: Client) => Promise<number>;

Copy link
Member Author

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.

@kodiakhq kodiakhq bot merged commit a2e4186 into main Sep 13, 2021
@kodiakhq kodiakhq bot deleted the bump-ncc-0-31-0 branch September 13, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants