Skip to content

Commit

Permalink
infra!: drop NodeJS v14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Sep 17, 2023
1 parent 82b779d commit 268a5a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 26 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node_version: [14, 16, 18, 20]
include:
- os: macos-latest
node_version: 16
- os: macos-latest
node_version: 18
- os: macos-latest
node_version: 20
- os: windows-latest
node_version: 16
- os: windows-latest
node_version: 18
- os: windows-latest
node_version: 20
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 20]
fail-fast: false
timeout-minutes: 10

Expand All @@ -40,14 +27,7 @@ jobs:
# Required for docs/versions tests
fetch-depth: 0

- name: Install pnpm (node 14, pnpm 7)
if: matrix.node_version == 14
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 7

- name: Install pnpm
if: matrix.node_version != 14
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0

- name: Set node version to ${{ matrix.node_version }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
},
"packageManager": "pnpm@8.5.1",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=6.14.13"
"node": "^16.13.0 || >=18.0.0",
"npm": ">=7.10.0"
}
}
2 changes: 1 addition & 1 deletion scripts/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { allLocales } from '../src';

console.log('Building dist for node (cjs)...');

const target = ['ES2019', 'node14.17'];
const target = ['ES2022', 'node16.13'];

buildSync({
entryPoints: globSync('./src/**/*.ts'),
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "ES2019",
"target": "ES2022",
"noEmit": false,
"emitDeclarationOnly": true,
"rootDir": "src",
Expand Down

0 comments on commit 268a5a1

Please sign in to comment.