Skip to content

Commit 5da2c83

Browse files
committed
Update workflows. Export builder.
1 parent 78660f0 commit 5da2c83

File tree

4 files changed

+397
-455
lines changed

4 files changed

+397
-455
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18.x, 20.x, 22.x]
16+
node-version: [18.x, 20.x, 22.x, 23.x]
1717
os: [ubuntu-latest]
1818

1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- run: corepack enable
23+
- uses: pnpm/action-setup@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
2525
uses: actions/setup-node@v4
2626
with:
@@ -34,4 +34,6 @@ jobs:
3434
- name: Test
3535
run: npm run test
3636
- name: Upload coverage reports to Codecov
37-
uses: codecov/codecov-action@v3
37+
uses: codecov/codecov-action@v5
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
id-token: write
1111
steps:
1212
- uses: actions/checkout@v4
13-
- run: corepack enable
13+
- uses: pnpm/action-setup@v4
1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version: '20.x'

package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
"name": "@cto.af/unicode-trie",
33
"version": "2.0.1",
44
"description": "Quick fork of unicode-trie for modernity",
5-
"main": "index.js",
65
"type": "module",
7-
"types": "types/index.d.ts",
6+
"exports": {
7+
".": {
8+
"default": "./index.js",
9+
"types": "./types/index.d.ts"
10+
},
11+
"./builder": {
12+
"default": "./builder.js",
13+
"types": "./types/builder.d.ts"
14+
}
15+
},
816
"scripts": {
917
"test": "c8 mocha",
1018
"lint": "eslint .",
@@ -34,15 +42,15 @@
3442
"fflate": "^0.8.2"
3543
},
3644
"devDependencies": {
37-
"@cto.af/eslint-config": "4.1.4",
38-
"@types/node": "22.0.2",
39-
"c8": "10.1.2",
40-
"eslint": "9.8.0",
45+
"@cto.af/eslint-config": "5.1.13",
46+
"@types/node": "22.13.9",
47+
"c8": "10.1.3",
48+
"eslint": "9.21.0",
4149
"eslint-plugin-mocha": "10.5.0",
42-
"mocha": "10.7.0",
43-
"typescript": "5.5.4"
50+
"mocha": "11.1.0",
51+
"typescript": "5.8.2"
4452
},
45-
"packageManager": "pnpm@9.6.0",
53+
"packageManager": "pnpm@10.6.0",
4654
"engines": {
4755
"node": ">=18"
4856
}

0 commit comments

Comments
 (0)