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 May 10, 2023
1 parent 9e1155c commit 5edf310
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [14, 16, 18, 20]
node_version: [16, 18, 20]
include:
- os: macos-latest
node_version: 16
Expand All @@ -40,14 +40,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@v2.2.4
with:
version: 7

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

- 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 @@ -141,7 +141,7 @@
},
"packageManager": "pnpm@8.4.0",
"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 @@ -7,7 +7,7 @@ console.log('Building dist for node (cjs)...');

// Generate entry-points for cjs compatibility
const localeDir = 'locale';
const target = ['ES2019', 'node14.17'];
const target = ['ES2022', 'node16.13'];

if (existsSync(localeDir)) {
rmSync(localeDir, { recursive: true, force: true });
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2019",
"target": "ES2022",
"moduleResolution": "Node",
"rootDir": "src",
"outDir": "dist",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.lint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"target": "ES2022",
"stripInternal": true,
"skipLibCheck": false,
"rootDir": "."
Expand Down

0 comments on commit 5edf310

Please sign in to comment.