From 2d77f73df3f8a4c9e09655da1600d31e80eeec81 Mon Sep 17 00:00:00 2001 From: Ihor Date: Wed, 8 Dec 2021 09:37:30 +0100 Subject: [PATCH] =?UTF-8?q?chore(deps):=20=F0=9F=94=97=20enforce=20node.js?= =?UTF-8?q?=20v12=20as=20minimum=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: drop support for node v11 --- .github/workflows/ci.yml | 8 ++++---- .npmrc | 3 ++- package.json | 14 +++++++++----- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d7de0d7..e82c8160 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,11 @@ jobs: matrix: node-version: # oldest supported - - 11.x - # current LTS + - 12.x + # Maintenance LTS - 14.x - # Latest available - # - 15.x + # Active LTS + - 16.x name: Node v${{ matrix.node-version }} ${{ matrix.install-option }} steps: - uses: actions/checkout@v2 diff --git a/.npmrc b/.npmrc index 37cd0fc1..a209b251 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ -node-options=--max_old_space_size=4096 \ No newline at end of file +engine-strict=true +node-options=--max_old_space_size=4096 diff --git a/package.json b/package.json index 83b894b2..9c745864 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "karma-sabarivka-reporter", + "version": "3.3.1", "description": "A Karma plugin. Adds untested files to istanbul coverage statistic", "license": "MIT", "author": "Ihor Kopach (https://kopach.dev)", @@ -11,12 +12,12 @@ "bugs": { "url": "https://github.com/kopach/karma-sabarivka-reporter/issues" }, - "version": "3.3.1", "main": "dist/index.js", "files": [ "dist/*" ], "scripts": { + "_postshrinkwrap": "HUSKY_SKIP_HOOKS=1 lockfix", "adr:update": "adr update", "prebuild": "rimraf dist && npm run generate-public-api-schema", "build": "tsc --sourceMap false", @@ -29,12 +30,11 @@ "lint:fix": "npm run lint -- --fix", "prepublishOnly": "npm run build", "release": "HUSKY_SKIP_HOOKS=1 np --no-2fa", - "_postshrinkwrap": "HUSKY_SKIP_HOOKS=1 lockfix", "tdd": "concurrently --kill-others \"npm run test:watch\" \"live-server --watch=coverage/lcov-report --open=coverage/lcov-report --quiet\"", "pretest": "npm run generate-public-api-schema", "test": "nyc mocha --config test/.mocharc.json **/*.ts", - "upload-code-coverage": "codecov", - "test:watch": "onchange --kill --initial 'test/*.spec.ts' 'src/*.ts' -- npm run test" + "test:watch": "onchange --kill --initial 'test/*.spec.ts' 'src/*.ts' -- npm run test", + "upload-code-coverage": "codecov" }, "config": { "commitizen": { @@ -112,5 +112,9 @@ "karma-plugin", "karma-reporter", "sabarivka" - ] + ], + "engines": { + "node": ">=12.0.0", + "npm": ">=8.0.0" + } }