From 40212b198ccf737c4aaaf4732de0073ce9dbe8c4 Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Sun, 22 Oct 2023 21:04:29 -0400 Subject: [PATCH] build(nvm)!: require `>=18.18.2 <20.6.0 || >20.6.0` - https://nodejs.org/blog/announcements/nodejs16-eol Signed-off-by: Lexus Drumgold --- .codecov.yml | 8 ++------ .github/infrastructure.yml | 1 - .github/workflows/ci.yml | 1 - .nvmrc | 2 +- build.config.ts | 3 ++- package.json | 2 +- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index dec1ec2..25b0e77 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -4,12 +4,12 @@ --- codecov: notify: - after_n_builds: 4 + after_n_builds: 3 wait_for_ci: true require_ci_to_pass: true comment: - after_n_builds: 4 + after_n_builds: 3 behavior: default layout: header,diff,flags,components,tree,footer require_base: false @@ -116,10 +116,6 @@ flags: carryforward: false paths: - src/ - node16: - carryforward: false - paths: - - src/ github_checks: annotations: true diff --git a/.github/infrastructure.yml b/.github/infrastructure.yml index e85c15a..fe6b44b 100644 --- a/.github/infrastructure.yml +++ b/.github/infrastructure.yml @@ -54,7 +54,6 @@ branches: - context: gitguardian - context: lint - context: spelling - - context: test (16) - context: test (18) - context: test (19) - context: test (20) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e851cb..f3732ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,7 +296,6 @@ jobs: - 20 - 19 - 18 - - 16 steps: - id: checkout name: Checkout ${{ env.REF_NAME }} diff --git a/.nvmrc b/.nvmrc index 6a148f2..209e3ef 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.5.0 +20 diff --git a/build.config.ts b/build.config.ts index 48ca2cd..9800718 100644 --- a/build.config.ts +++ b/build.config.ts @@ -5,6 +5,7 @@ import { defineBuildConfig, type Config } from '@flex-development/mkbuild' import pathe from '@flex-development/pathe' +import { at } from '@flex-development/tutils' import pkg from './package.json' assert { type: 'json' } import tsconfig from './tsconfig.build.json' assert { type: 'json' } @@ -39,7 +40,7 @@ const config: Config = defineBuildConfig({ keepNames: true, minifySyntax: true, target: [ - pkg.engines.node.replace(/^\D+/, 'node'), + 'node' + at(/([\d.]+)/.exec(pkg.engines.node), 0, ''), tsconfig.compilerOptions.target ], tsconfig: 'tsconfig.build.json' diff --git a/package.json b/package.json index ffe9eda..d27178e 100644 --- a/package.json +++ b/package.json @@ -176,7 +176,7 @@ "chai": "5.0.0-alpha.1" }, "engines": { - "node": ">=16.20.0" + "node": ">=18.18.2 <20.6.0 || >20.6.0" }, "packageManager": "yarn@4.0.0", "readme": "README.md",