Skip to content

Commit 4576ef3

Browse files
committed
[v4.0] Set minimum Node version to 18
1 parent fac5f1c commit 4576ef3

File tree

5 files changed

+11
-41
lines changed

5 files changed

+11
-41
lines changed

.github/workflows/repl-artefacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
#TODO: remove after or before merging release-4.0
6161
if: ${{ github.head_ref == 'release-4.0' || github.base_ref == 'release-4.0' }}
6262
run: npm exec -- concurrently -c green,blue,yellow 'npm:build:napi -- --release' 'npm run build:wasm' 'npm:build:cjs' && npm run build:copy-native && npm run build:bootstrap
63-
#TODO: remove after or before merging release-4.0
63+
#TODO: remove after or before merging release-4.0
6464
- name: Build artefacts
6565
if: ${{ github.head_ref != 'release-4.0' && github.base_ref != 'release-4.0' }}
6666
run: npm run build:cjs && npm run build:bootstrap

.github/workflows/tests.yml

+4-32
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ jobs:
4747
linux16:
4848
runs-on: ubuntu-latest
4949
timeout-minutes: 15
50-
name: Node 16 + Extra Tests (Linux)
50+
name: Node 18 + Extra Tests (Linux)
5151
steps:
5252
- name: Checkout Commit
5353
uses: actions/checkout@v4
5454
- name: Setup Node
5555
uses: actions/setup-node@v3
5656
with:
57-
node-version: '16'
57+
node-version: '18'
5858
- name: Cache Node Modules
5959
id: cache-node-modules
6060
uses: actions/cache@v3
@@ -73,40 +73,12 @@ jobs:
7373
env:
7474
CI: true
7575

76-
linux:
77-
runs-on: ubuntu-latest
78-
timeout-minutes: 15
79-
strategy:
80-
matrix:
81-
node: ['14.18.0']
82-
name: Node ${{ matrix.node }} (Linux)
83-
steps:
84-
- name: Checkout Commit
85-
uses: actions/checkout@v4
86-
- name: Setup Node
87-
uses: actions/setup-node@v3
88-
with:
89-
node-version: ${{ matrix.node }}
90-
- name: Cache Node Modules
91-
id: cache-node-modules
92-
uses: actions/cache@v3
93-
with:
94-
path: node_modules
95-
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
96-
- name: Install dependencies
97-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
98-
run: npm i -g npm@8 && npm ci --ignore-scripts
99-
- name: Run tests
100-
run: npm run ci:test:only
101-
env:
102-
CI: true
103-
10476
macos:
10577
runs-on: macos-latest
10678
timeout-minutes: 15
10779
strategy:
10880
matrix:
109-
node: ['14.18.0', '18']
81+
node: ['18']
11082
name: Node ${{ matrix.node }} (macOS)
11183
steps:
11284
- name: Checkout Commit
@@ -137,7 +109,7 @@ jobs:
137109
timeout-minutes: 15
138110
strategy:
139111
matrix:
140-
node: ['14.18.0', '18']
112+
node: ['18']
141113
name: Node ${{ matrix.node }} (Windows)
142114
steps:
143115
- name: Checkout Commit

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup",
3-
"version": "3.29.4",
3+
"version": "4.0.0-0",
44
"description": "Next-generation ES module bundler",
55
"main": "dist/rollup.js",
66
"module": "dist/es/rollup.js",
@@ -157,7 +157,7 @@
157157
"dist/es/package.json"
158158
],
159159
"engines": {
160-
"node": ">=14.18.0",
160+
"node": ">=18.0.0",
161161
"npm": ">=8.0.0"
162162
},
163163
"exports": {

tsconfig.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
44
"forceConsistentCasingInFileNames": true,
5-
"isolatedModules": true,
65
"module": "ESNext",
76
"moduleResolution": "Node",
87
"noEmitOnError": true,
@@ -11,8 +10,7 @@
1110
"resolveJsonModule": true,
1211
"skipLibCheck": true,
1312
"strict": true,
14-
"target": "ES2020",
15-
"useDefineForClassFields": false
13+
"target": "ES2022"
1614
},
1715
"include": ["typings/**/*.d.ts", "src", "cli", "browser", "rollup.config.ts"],
1816
"exclude": ["dist", "node_modules", "test/typescript", "browser/dist"]

0 commit comments

Comments
 (0)