Skip to content

Commit

Permalink
deps: replace "nyc" with "c8"
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
justinmk3 committed Jan 4, 2024
1 parent 1e48a31 commit 1d68044
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 1,070 deletions.
20 changes: 20 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"report-dir": "./coverage",
"reporter": ["lcov"],
"all": true,
"include": ["src/**", "dist/src/**"],
"exclude": [
"dist/src/test/**",
"dist/src/ssmDocument/**",
"dist/src/testE2E/**",
"dist/src/testLint/**",
"dist/src/testInteg/**",
"dist/src/testFixtures/**",
"src/test/**",
"src/ssmDocument/**",
"src/testE2E/**",
"src/testLint/**",
"src/testInteg/**",
"src/testFixtures/**"
]
}
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
verbose: true
file: ./coverage/coverage-final.json
file: ./coverage/lcov.info
flags: macos-unittests
- name: Code coverage (CodeWhisperer)
env:
Expand All @@ -52,7 +52,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
verbose: true
file: ./coverage/coverage-final.json
file: ./coverage/lcov.info
flags: codewhisperer

windows:
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
verbose: true
file: ./coverage/coverage-final.json
file: ./coverage/lcov.info
flags: windows-unittests

lint:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ out
dist
node_modules
.vscode-test/
.nyc_output/
coverage/
*.vsix
*.bk
Expand Down
5 changes: 0 additions & 5 deletions .nycrc.json

This file was deleted.

Loading

0 comments on commit 1d68044

Please sign in to comment.