Skip to content

Commit 8d7af7c

Browse files
fix(deps): update external major (major) (#604)
1 parent 3c29c55 commit 8d7af7c

File tree

6 files changed

+573
-713
lines changed

6 files changed

+573
-713
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Use Node.js 20.x
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '20.x'
18+
node-version: '22.x'
1919
- run: npm install
2020
- run: git config --global user.email "[email protected]" && git config --global user.name "Test Build"
2121
- run: npm test
22-
- uses: codecov/codecov-action@v4
22+
- uses: codecov/codecov-action@v5
2323
with:
2424
token: ${{ secrets.CODECOV_TOKEN }}
2525

@@ -32,7 +32,7 @@ jobs:
3232
- name: Use Node.js 20.x
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: '20.x'
35+
node-version: '22.x'
3636
- run: npm install
3737
- run: git config --global user.email "[email protected]" && git config --global user.name "Test Build"
3838
- run: npm test
@@ -49,7 +49,7 @@ jobs:
4949
- name: Use Node.js 20.x
5050
uses: actions/setup-node@v4
5151
with:
52-
node-version: '20.x'
52+
node-version: '22.x'
5353
- run: npm install
5454
- run: npm run semantic-release
5555
env:

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/* @ts-check */
1313
import yargs from 'yargs';
1414
import fs from 'fs-extra';
15-
import readdirp from 'readdirp';
15+
import readdirp, { readdirpPromise } from 'readdirp';
1616
import {
1717
iter, pipe, filter, map, obj,
1818
} from 'ferrum';
@@ -307,7 +307,7 @@ export async function main(args) {
307307
const schemaExtension = argv.e;
308308

309309
// list all schema files in the specified directory
310-
const schemaFiles = await readdirp.promise(schemaPath, { root: schemaPath, fileFilter: `*.${schemaExtension}` });
310+
const schemaFiles = await readdirpPromise(schemaPath, { root: schemaPath, fileFilter: (f) => f.path.endsWith(schemaExtension) });
311311

312312
console.log(`loading ${schemaFiles.length} schemas`);
313313

0 commit comments

Comments
 (0)