Skip to content

Commit 72abb5f

Browse files
committedNov 28, 2024
feat!: drop node 16 & webpack 4 support
1 parent 0b5072f commit 72abb5f

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed
 

Diff for: ‎.github/workflows/ci.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
- run: corepack enable
1617
- uses: actions/setup-node@v4
1718
with:
1819
node-version: lts/*
19-
- run: corepack enable
20+
cache: pnpm
2021
- run: npm i -g @antfu/ni
2122
- run: nci
2223
- run: nr lint
@@ -56,15 +57,3 @@ jobs:
5657

5758
- name: Test
5859
run: pnpm run test
59-
60-
- name: Install Webpack 4
61-
run: pnpm i webpack@4
62-
if: ${{ matrix.node == 16 }}
63-
env:
64-
IS_WEBPACK_4: 'true'
65-
66-
- name: Test with Webpack 4
67-
run: pnpm run test
68-
if: ${{ matrix.node == 16 }}
69-
env:
70-
IS_WEBPACK_4: 'true'

Diff for: ‎eslint.config.js renamed to ‎eslint.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
2-
const antfu = require('@antfu/eslint-config').default
2+
import antfu from '@antfu/eslint-config'
33

4-
module.exports = antfu(
4+
export default antfu(
55
{
66
ignores: [
77
'test-out/**',

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dist"
3030
],
3131
"engines": {
32-
"node": ">=14.0.0"
32+
"node": ">=18.12.0"
3333
},
3434
"scripts": {
3535
"build": "tsup",

Diff for: ‎tsup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const tsup: Options = {
66
sourcemap: false,
77
clean: true,
88
format: ['cjs', 'esm'],
9-
target: 'node14',
9+
target: 'node18.12',
1010
dts: true,
1111
shims: true,
1212
entry: [

0 commit comments

Comments
 (0)
Please sign in to comment.