From 5c5538d7eb2194c5c3c1ed515f5eb976107ce247 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 20 Jul 2024 20:33:14 +0100 Subject: [PATCH] CLI: Upgrade `commander` from 7.2 to 12.1.0 Closes https://github.com/qunitjs/qunit/pull/1781. --- bin/qunit.js | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/qunit.js b/bin/qunit.js index e44f8b19f..c34a880d6 100755 --- a/bin/qunit.js +++ b/bin/qunit.js @@ -2,7 +2,7 @@ 'use strict'; -const program = require('commander'); +const { program } = require('commander'); const run = require('../src/cli/run'); const { displayAvailableReporters } = require('../src/cli/find-reporter'); const pkg = require('../package.json'); diff --git a/package-lock.json b/package-lock.json index eb4b920bb..7488f5c2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.0.0-alpha.1", "license": "MIT", "dependencies": { - "commander": "7.2.0", + "commander": "12.1.0", "node-watch": "0.7.4", "tiny-glob": "0.2.9" }, @@ -3644,11 +3644,11 @@ } }, "node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "version": "12.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", + "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", "engines": { - "node": ">= 10" + "node": ">=18" } }, "node_modules/commondir": { diff --git a/package.json b/package.json index fcc5b48c2..78b5739ca 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "node": ">=18" }, "dependencies": { - "commander": "7.2.0", + "commander": "12.1.0", "node-watch": "0.7.4", "tiny-glob": "0.2.9" },