Skip to content

Commit c8aadd0

Browse files
committed
fix: 👷 make it cjs for real this time
1 parent 9ba1f7e commit c8aadd0

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ inputs:
2929

3030
runs:
3131
using: "node20"
32-
main: "action.js"
32+
main: "github-action/action.js"

github-action/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# GitHub Action
2+
3+
This folder contains the GitHub Action for vitest coverage reporting.
4+
5+
## How it works
6+
7+
1. **Reads coverage data** from the JSON file generated by the vitest reporter
8+
2. **Generates a markdown comment** with coverage metrics and visual indicators
9+
3. **Posts/updates the comment** in the pull request
10+
11+
## Files
12+
13+
- `action.js` - The bundled ESM action code (built with ncc)
14+
- `README.md` - This file
15+
16+
## Usage
17+
18+
```yaml
19+
- uses: glideapps/[email protected]
20+
```
21+
22+
The action is configured via `action.yml` in the root directory.

package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
{
22
"name": "@glideapps/vitest-v8-json-coverage-summary",
3-
"version": "0.0.0-india",
3+
"version": "0.0.0-papa",
44
"description": "A plugin for vitest that generates a coverage summary in json format",
55
"main": "index.js",
66
"types": "dist/v8.json.summary.reporter.d.ts",
7-
"exports": {
8-
".": {
9-
"import": "./index.js",
10-
"types": "./dist/v8.json.summary.reporter.d.ts"
11-
}
12-
},
137
"files": [
148
"dist/v8.json.summary.reporter.js",
159
"dist/v8.json.summary.reporter.d.ts",
1610
"dist/v8.json.summary.reporter.js.map",
1711
"dist/v8.json.summary.reporter.d.ts.map",
18-
"action.js",
12+
"github-action/action.js",
1913
"index.js",
2014
"action.yml",
2115
"example-workflow.yml",

0 commit comments

Comments
 (0)