Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit fed36ec

Browse files
authored
feat!: migrate everything to ESM-only
2 parents c6f5bfd + 797e381 commit fed36ec

15 files changed

Lines changed: 1708 additions & 1520 deletions

.github/dependabot.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,3 @@ updates:
66
schedule:
77
interval: monthly
88
open-pull-requests-limit: 5
9-
ignore:
10-
# Ignore ESM-only package versions.
11-
# This can be fully removed once everything is ESM-native without all the weird issues.
12-
- dependency-name: hook-std
13-
versions:
14-
- '3.x'
15-
- dependency-name: node-fetch
16-
versions:
17-
- '3.x'
18-
- dependency-name: to-readable-stream
19-
versions:
20-
- '3.x'
21-
- '4.x'
22-
- dependency-name: '@semantic-release/release-notes-generator'
23-
versions:
24-
- '11.x'
25-
- dependency-name: '@types/node'
26-
versions:
27-
- '20.x'

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515

1616
- name: setup pnpm
1717
uses: pnpm/action-setup@v3
18-
with:
19-
version: 9
2018

2119
- name: setup node.js
2220
uses: actions/setup-node@v4
2321
with:
24-
node-version: 20
22+
node-version: 22
2523
cache: 'pnpm'
2624

2725
- name: install dependencies
@@ -66,13 +64,11 @@ jobs:
6664

6765
- name: setup pnpm
6866
uses: pnpm/action-setup@v3
69-
with:
70-
version: 9
7167

7268
- name: setup node.js
7369
uses: actions/setup-node@v4
7470
with:
75-
node-version: 20
71+
node-version: 22
7672
cache: 'pnpm'
7773

7874
- name: install dependencies
@@ -92,13 +88,11 @@ jobs:
9288

9389
- name: setup pnpm
9490
uses: pnpm/action-setup@v3
95-
with:
96-
version: 9
9791

9892
- name: setup node.js
9993
uses: actions/setup-node@v4
10094
with:
101-
node-version: 20
95+
node-version: 22
10296
cache: 'pnpm'
10397

10498
- name: install dependencies

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib/
33
node_modules/
44
coverage/
5-
.nyc_output/
65
test.sh
76
test.sh.sha256
87
.tap/
8+
.tsimp/

.taprc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
plugin:
2+
- "!@tapjs/typescript"
3+
- "@tapjs/tsx"
4+
browser: true
5+
timeout: 30
6+
jobs: 6
7+
include:
8+
- "**/*.test.ts"
9+
exclude:
10+
- "**/@(fixture*(s)|lib)/**"
11+
snapshot-clean-cwd: true
12+
color: true
13+
reporter: base
14+
coverage-report:
15+
- text

INTERNAL-NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Internal Notes
2+
3+
## How to check for release version
4+
5+
```
6+
pnpm dlx release-please release-pr --token="<insert-github-token>" --repo-url=paambaati/codeclimate-action --trace --dry-run
7+
```

package.json

Lines changed: 61 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,63 @@
11
{
2-
"name": "codeclimate-action",
3-
"version": "6.0.0",
4-
"private": true,
5-
"description": "Publish code coverage to Code Climate",
6-
"main": "lib/main.js",
7-
"packageManager": "pnpm@9.0.6",
8-
"scripts": {
9-
"build": "tsc",
10-
"test": "cross-env NODE_OPTIONS=\"--no-warnings\" tap run --disable-coverage",
11-
"test:only": "pnpm run test --only",
12-
"coverage": "pnpm run test --no-disable-coverage --allow-incomplete-coverage --coverage-report=lcovonly",
13-
"coverage:html": "pnpm run coverage --coverage-report=html",
14-
"biome:ci": "biome ci ./",
15-
"format:check": "biome format ./",
16-
"format": "biome format --write ./",
17-
"lint:check": "biome lint ./",
18-
"lint": "biome lint --apply ./",
19-
"lint:unsafe": "biome lint --apply-unsafe ./"
20-
},
21-
"repository": {
22-
"type": "git",
23-
"url": "https://github.com/paambaati/codeclimate-action.git"
24-
},
25-
"keywords": [
26-
"actions",
27-
"codeclimate",
28-
"quality",
29-
"coverage"
30-
],
31-
"author": "GP <me@httgp.com>",
32-
"license": "MIT",
33-
"dependencies": {
34-
"@actions/core": "1.10.1",
35-
"@actions/exec": "1.1.1",
36-
"@actions/github": "6.0.0",
37-
"@actions/glob": "0.4.0",
38-
"hook-std": "2.0.0",
39-
"node-fetch": "2.7.0",
40-
"openpgp": "5.11.1"
41-
},
42-
"devDependencies": {
43-
"@biomejs/biome": "1.7.1",
44-
"@openpgp/web-stream-tools": "0.1.1",
45-
"@tapjs/test": "1.4.2",
46-
"@types/node": "20.12.7",
47-
"@types/node-fetch": "2.6.11",
48-
"@types/sinon": "17.0.3",
49-
"@types/which": "3.0.3",
50-
"cross-env": "7.0.3",
51-
"nock": "13.5.4",
52-
"sinon": "17.0.1",
53-
"tap": "18.7.2",
54-
"to-readable-stream": "2.1.0",
55-
"typescript": "5.4.5",
56-
"which": "4.0.0"
57-
}
2+
"name": "codeclimate-action",
3+
"version": "6.0.0",
4+
"private": true,
5+
"description": "Publish code coverage to Code Climate",
6+
"type": "module",
7+
"main": "lib/main.js",
8+
"packageManager": "pnpm@9.3.0",
9+
"scripts": {
10+
"build": "tsc -p tsconfig.build.json",
11+
"test": "cross-env NODE_OPTIONS=\"--no-warnings\" tap run --disable-coverage",
12+
"test:only": "pnpm run test --only",
13+
"coverage": "pnpm run test --no-disable-coverage --allow-incomplete-coverage --coverage-report=lcovonly",
14+
"coverage:html": "pnpm run coverage --coverage-report=html",
15+
"biome:ci": "biome ci",
16+
"format:check": "biome format",
17+
"format": "biome format --fix",
18+
"lint:check": "biome lint",
19+
"lint": "biome lint --fix",
20+
"lint:unsafe": "biome lint --fix --unsafe ./"
21+
},
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/paambaati/codeclimate-action.git"
25+
},
26+
"keywords": [
27+
"actions",
28+
"codeclimate",
29+
"quality",
30+
"coverage"
31+
],
32+
"author": "GP <me@httgp.com>",
33+
"license": "MIT",
34+
"dependencies": {
35+
"@actions/core": "1.10.1",
36+
"@actions/exec": "1.1.1",
37+
"@actions/github": "6.0.0",
38+
"@actions/glob": "0.4.0",
39+
"hook-std": "3.0.0",
40+
"node-fetch": "3.3.2",
41+
"openpgp": "5.11.1"
42+
},
43+
"devDependencies": {
44+
"@biomejs/biome": "1.8.1",
45+
"@openpgp/web-stream-tools": "0.1.1",
46+
"@tapjs/tsx": "1.1.32",
47+
"@tsconfig/node20": "20.1.4",
48+
"@tsconfig/strictest": "2.0.5",
49+
"@types/node": "20.14.2",
50+
"@types/node-fetch": "2.6.11",
51+
"@types/sinon": "17.0.3",
52+
"@types/which": "3.0.4",
53+
"c8": "10.1.1",
54+
"cross-env": "7.0.3",
55+
"into-stream": "8.0.1",
56+
"nock": "13.5.4",
57+
"sinon": "18.0.0",
58+
"tap": "19.2.5",
59+
"tsimp": "2.0.11",
60+
"typescript": "5.4.5",
61+
"which": "4.0.0"
62+
}
5863
}

0 commit comments

Comments
 (0)