From b45dbfc50ef4b62e24d35d8b035c2cd1dd23093a Mon Sep 17 00:00:00 2001 From: mrmlnc Date: Mon, 2 Dec 2024 00:30:00 +0300 Subject: [PATCH] build: require node@18.18 --- .github/workflows/main.yml | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e4fac31..0c4693e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - node_version: [16.14.0, 16, 18, 20, 22] + node_version: [18.18.0, 18, 20, 22] os: - ubuntu-latest - macos-latest @@ -35,7 +35,6 @@ jobs: run: npm install - name: Run Hygiene Checks run: npm run lint - if: ${{ matrix.node_version >= 18 }} - name: Prepare bundle run: npm run bundle - name: Run unit tests diff --git a/package.json b/package.json index 47330532..e6b54fad 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url": "https://mrmlnc.com" }, "engines": { - "node": ">=16.14.0" + "node": ">=18.18.0" }, "main": "build/index.js", "typings": "build/index.d.ts", @@ -69,7 +69,7 @@ "build": "npm run _build:compile && npm run lint && npm test", "watch": "npm run _build:compile -- -- --sourceMap --watch", "_bundle:dts": "tsc --emitDeclarationOnly --outDir ./build", - "_bundle:ts": "esbuild --bundle ./src/index.ts --outfile=./build/index.js --platform=node --target=node16.14 --format=cjs", + "_bundle:ts": "esbuild --bundle ./src/index.ts --outfile=./build/index.js --platform=node --target=node18.18 --format=cjs", "_bundle:build": "npm run _bundle:dts && npm run _bundle:ts", "_bundle:test:replace": "cp ./build/index.js ./out", "_bundle:test": "npm run _bundle:test:replace",