From 4176c7e6642d00377cb3052daa2c990601b8db74 Mon Sep 17 00:00:00 2001 From: Alynx Zhou Date: Wed, 21 Feb 2024 13:38:30 +0800 Subject: [PATCH 1/2] Make commander a dev and build dependency It is only used in precompile script, people who install nunjucks as a dependency is unlikely to use precompile script. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6eb3ff88..4df7e81b 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "author": "James Long ", "dependencies": { "a-sync-waterfall": "^1.0.0", - "asap": "^2.0.3", - "commander": "^5.1.0" + "asap": "^2.0.3" }, "browser": "./browser/nunjucks.js", "devDependencies": { @@ -17,6 +16,7 @@ "babel-loader": "^8.0.0-beta.0", "babel-plugin-istanbul": "^4.1.5", "babel-plugin-module-resolver": "3.0.0-beta.5", + "commander": "^5.1.0", "connect": "^3.6.5", "core-js": "^2.5.3", "cross-env": "^5.1.3", @@ -48,6 +48,7 @@ "babel-loader": "^8.0.0-beta.0", "babel-plugin-istanbul": "^4.1.5", "babel-plugin-module-resolver": "3.0.0-beta.5", + "commander": "^5.1.0", "core-js": "^2.5.3", "module-alias": "^2.0.3", "node-libs-browser": "^0.7.0", From 8b9e171dd225bd653a58a90e28726c8985322cd2 Mon Sep 17 00:00:00 2001 From: Alynx Zhou Date: Wed, 21 Feb 2024 13:43:26 +0800 Subject: [PATCH 2/2] Bump commander to latest version --- bin/precompile | 3 +-- package.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/precompile b/bin/precompile index 17082350..9a0185b2 100755 --- a/bin/precompile +++ b/bin/precompile @@ -7,8 +7,7 @@ var lib = require('../src/lib'); var cmdpath = null; program - .storeOptionsAsProperties(false) - .passCommandToAction(false); + .storeOptionsAsProperties(false); program .name('precompile') diff --git a/package.json b/package.json index 4df7e81b..97ffd7f4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "babel-loader": "^8.0.0-beta.0", "babel-plugin-istanbul": "^4.1.5", "babel-plugin-module-resolver": "3.0.0-beta.5", - "commander": "^5.1.0", + "commander": "^12.0.0", "connect": "^3.6.5", "core-js": "^2.5.3", "cross-env": "^5.1.3", @@ -48,7 +48,7 @@ "babel-loader": "^8.0.0-beta.0", "babel-plugin-istanbul": "^4.1.5", "babel-plugin-module-resolver": "3.0.0-beta.5", - "commander": "^5.1.0", + "commander": "^12.0.0", "core-js": "^2.5.3", "module-alias": "^2.0.3", "node-libs-browser": "^0.7.0",