Skip to content

Commit 962e624

Browse files
authored
Merge pull request #130 from hildjj/update-dependencies
Update dependencies, including tests. Fixed nits.
2 parents 5c720b4 + 271529f commit 962e624

File tree

11 files changed

+495
-441
lines changed

11 files changed

+495
-441
lines changed

.github/workflows/node.js.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
branches:
99
- main
10+
workflow_call:
11+
secrets:
12+
CODECOV_TOKEN:
13+
required: true
1014

1115
jobs:
1216
build:
@@ -22,7 +26,10 @@ jobs:
2226
- uses: actions/checkout@v4
2327
with:
2428
submodules: true
25-
- run: corepack enable
29+
- name: install corepack
30+
run: |
31+
npm install -g corepack@latest --force
32+
corepack enable
2633
- name: Use Node.js ${{ matrix.node-version }}
2734
uses: actions/setup-node@v4
2835
with:
@@ -35,20 +42,7 @@ jobs:
3542
run: npm run lint
3643
- name: Test
3744
run: npm run ci
38-
- name: Coveralls Parallel
39-
uses: coverallsapp/github-action@master
45+
- name: Upload coverage reports to Codecov
46+
uses: codecov/codecov-action@v5
4047
with:
41-
github-token: ${{ secrets.github_token }}
42-
flag-name: node-${{ matrix.node-version }}
43-
path-to-lcov: ./coverage/lcov.info
44-
parallel: true
45-
finish:
46-
needs: build
47-
runs-on: ubuntu-latest
48-
steps:
49-
- name: Coveralls Finished
50-
uses: coverallsapp/github-action@master
51-
with:
52-
github-token: ${{ secrets.github_token }}
53-
path-to-lcov: ./coverage/lcov.info
54-
parallel-finished: true
48+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Package to npmjs
2+
on:
3+
release:
4+
types: [published]
5+
workflow_call:
6+
secrets:
7+
NPM_TOKEN:
8+
required: true
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: install corepack
19+
run: |
20+
npm install -g corepack@latest --force
21+
corepack enable
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '22.x'
25+
registry-url: 'https://registry.npmjs.org'
26+
cache: pnpm
27+
- run: pnpm i -r
28+
- run: npm run build
29+
- run: npm publish --access public --provenance
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.ncurc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"dep": ["prod", "dev", "packageManager"],
3+
"reject": [
4+
"chai",
5+
"@types/chai"
6+
]
7+
}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.github
66
.gitmodules
77
.mocharc.js
8+
.ncurc
89
.npmignore
910
.vscode
1011
[Tt]ests/

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To perform the test, run `cmake .` at the root of the project tree followed
44
# by `ctest .`
55

6-
cmake_minimum_required(VERSION 3.5)
6+
cmake_minimum_required(VERSION 3.16.3)
77

88
# Do not check any compiler
99
project(editorconfig-core-js NONE)

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,29 @@
4040
"author": "EditorConfig Team",
4141
"license": "MIT",
4242
"dependencies": {
43-
"@one-ini/wasm": "0.1.1",
44-
"commander": "^12.1.0",
43+
"@one-ini/wasm": "0.2.0",
44+
"commander": "^13.1.0",
4545
"minimatch": "10.0.1",
46-
"semver": "^7.6.3"
46+
"semver": "^7.7.1"
4747
},
4848
"devDependencies": {
49-
"@cto.af/eslint-config": "4.1.6",
49+
"@cto.af/eslint-config": "5.1.7",
5050
"@types/chai": "4.3.20",
51-
"@types/mocha": "^10.0.8",
52-
"@types/node": "^22.7.4",
51+
"@types/mocha": "^10.0.10",
52+
"@types/node": "^22.13.1",
5353
"@types/semver": "^7.5.8",
54-
"@typescript-eslint/eslint-plugin": "8.8.0",
55-
"@typescript-eslint/parser": "8.8.0",
56-
"c8": "10.1.2",
54+
"@typescript-eslint/eslint-plugin": "8.23.0",
55+
"@typescript-eslint/parser": "8.23.0",
56+
"c8": "10.1.3",
5757
"chai": "4.5.0",
58-
"eslint": "9.11.1",
59-
"eslint-plugin-jsdoc": "50.3.1",
60-
"mocha": "^10.7.3",
58+
"eslint": "9.19.0",
59+
"eslint-plugin-jsdoc": "50.6.3",
60+
"mocha": "^11.1.0",
6161
"rimraf": "^6.0.1",
62-
"typescript": "5.5.4",
63-
"typescript-eslint": "8.8.0"
62+
"typescript": "5.7.3",
63+
"typescript-eslint": "8.23.0"
6464
},
65-
"packageManager": "pnpm@9.12.0",
65+
"packageManager": "pnpm@10.2.0",
6666
"engines": {
6767
"node": ">=18"
6868
}

0 commit comments

Comments
 (0)