-
Notifications
You must be signed in to change notification settings - Fork 472
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
deps: replace "nyc" with "c8" #4228
Conversation
Looks like it worked: https://app.codecov.io/github/aws/aws-toolkit-vscode/commit/bc308d44c8cca822ed4a982195175c8adc6b70fa
|
"report-dir": "./coverage", | ||
"reporter": ["lcov"], | ||
"all": true, | ||
"include": ["src/**", "dist/src/**"], |
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.
should we check the lint rules in plugins/ as well?
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.
Sure, let's add that later.
Problem: `nyc` is no longer maintained: istanbuljs/nyc#1514 and it depends on various outdated packages, .e.g `uuid@3.4.0` (check with `npm ls uuid`). Solution: - Remove `nyc`. - Migrate to `c8`.
"all": true, | ||
"include": ["src/**", "dist/src/**"], | ||
"exclude": [ | ||
"dist/src/ssmDocument/ssm/ssmServer.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.
Avoid this weird failure from somewhere in ssmDocument/**
:
Error: ENOENT: no such file or directory, open 'D:\a\aws-toolkit-vscode\aws-toolkit-vscode\coverage\lcov-report\dist\src\ssmDocument\external "buffer".html'
at Object.openSync (node:fs:590:3)
at FileWriter.writeFile (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\node_modules\istanbul-lib-report\lib\file-writer.js:185:41)
Problem
nyc
is no longer maintained: istanbuljs/nyc#1514and it depends on various outdated packages, .e.g
uuid@3.4.0
(check withnpm ls uuid
).Solution
nyc
.c8
.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.