Skip to content

Commit 18e10dd

Browse files
chore: update deps, windows ci. (#36)
* build: add name to preset-env.
1 parent b1e3688 commit 18e10dd

7 files changed

Lines changed: 1345 additions & 1100 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.15.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.15.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"presets": [
55
["@babel/preset-env", {
66
"modules": false
7-
}],
7+
}, "specifier-build"],
88
"@babel/preset-typescript"
99
]
1010
}

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ export default tseslint.config(
1919
'@typescript-eslint/no-var-requires': 'off',
2020
'@typescript-eslint/no-unused-vars': 'off',
2121
'@typescript-eslint/no-require-imports': 'off',
22+
'n/no-unsupported-features/node-builtins': [
23+
'error',
24+
{
25+
ignores: [
26+
'import.meta.resolve',
27+
]
28+
}
29+
]
2230
},
2331
},
32+
{
33+
files: ['test/*.ts'],
34+
rules: {
35+
'n/no-unsupported-features/node-builtins': [
36+
'error',
37+
{
38+
ignores: [
39+
'test.describe',
40+
]
41+
}
42+
]
43+
}
44+
}
2445
)

0 commit comments

Comments
 (0)