Skip to content

Commit d755fea

Browse files
chore: update deps, windows ci. (#9)
1 parent 48f5eef commit d755fea

7 files changed

Lines changed: 1271 additions & 1187 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@ on:
1111
jobs:
1212
ci:
1313
name: CI
14-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest]
17+
version: ['22.17.1', '24.4.1']
18+
runs-on: ${{ matrix.os }}
1519
steps:
1620
- name: Checkout
1721
uses: actions/checkout@v4.2.2
1822
- name: Setup Node
1923
uses: actions/setup-node@v4.3.0
2024
with:
21-
node-version: '22.14.0'
25+
node-version: ${{ matrix.version }}
2226
- name: Install Dependencies
2327
run: npm ci
2428
- name: Save error log

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Node
1515
uses: actions/setup-node@v4.3.0
1616
with:
17-
node-version: '22.14.0'
17+
node-version: '24.4.1'
1818
- name: Install Dependencies
1919
run: npm ci
2020
- name: Save error log

babel.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"@babel/preset-env",
66
{
77
"modules": false
8-
}
8+
},
9+
"module-build"
910
],
1011
"@babel/preset-typescript"
1112
]

eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@ export default tseslint.config(
1919
'@typescript-eslint/no-var-requires': 'off',
2020
'@typescript-eslint/no-unused-expressions': 'off',
2121
'@typescript-eslint/no-require-imports': 'off',
22+
'n/no-unsupported-features/node-builtins': [
23+
'error',
24+
{
25+
ignores: ['import.meta.dirname', 'import.meta.filename'],
26+
},
27+
],
28+
},
29+
},
30+
{
31+
files: ['test/*.ts'],
32+
rules: {
33+
'n/no-unsupported-features/node-builtins': [
34+
'error',
35+
{
36+
ignores: ['test.describe', 'import.meta.dirname'],
37+
},
38+
],
2239
},
2340
},
2441
)

0 commit comments

Comments
 (0)