| 1 |
Descriptionscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/patches/`fix-commander-14-compat.patch`#Description.: Use named imports for commander 14 compatibility |
| 2 |
Commander 12+ removed the default export of a global Command instance. |
| 3 |
Use named imports ({ program } or * as commander) instead. |
| 4 |
Authorscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/patches/`fix-commander-14-compat.patch`#Author.: Yadd <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 |
Forwardedscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/patches/`fix-commander-14-compat.patch`#Forwarded.: not-needed |
| 6 |
Last-Updatescip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/patches/`fix-commander-14-compat.patch`#Last-Update.: 2026-03-28 |
| 7 |
--- a/packages/babel-cli/src/babel-external-helpers.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-cli/src/babel-external-helpers.ts`: |
| 8 |
+++ b/packages/babel-cli/src/babel-external-helpers.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-cli/src/babel-external-helpers.ts`: |
| 9 |
@@ -1,4 +1,4 @@ |
| 10 |
|
| 11 |
+import { program as commander } from "commander"; |
| 12 |
import { buildExternalHelpers } from "@babel/core"; |
| 13 |
|
| 14 |
function collect( |
| 15 |
--- a/packages/babel-cli/src/babel/options.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-cli/src/babel/options.ts`: |
| 16 |
+++ b/packages/babel-cli/src/babel/options.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-cli/src/babel/options.ts`: |
| 17 |
@@ -1,6 +1,6 @@ |
| 18 |
import fs from "fs"; |
| 19 |
|
| 20 |
|
| 21 |
+import { program as commander } from "commander"; |
| 22 |
import { version, DEFAULT_EXTENSIONS } from "@babel/core"; |
| 23 |
import glob from "glob"; |
| 24 |
|
| 25 |
@@ -224,6 +224,8 @@ |
| 26 |
// unknown options _after_ args |
| 27 |
// see https://github.com/tj/commander.js/issues/561#issuecomment-522209408 |
| 28 |
// @ts-ignore |
| 29 |
+commander.allowExcessArguments(); |
| 30 |
+// @ts-ignore |
| 31 |
commander.action(() => {}); |
| 32 |
|
| 33 |
export type CmdOptions = { |
| 34 |
--- a/packages/babel-node/src/_babel-node.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-node/src/_babel-node.ts`: |
| 35 |
+++ b/packages/babel-node/src/_babel-node.tsscip-debian debian node-babel7 7.20.15+ds1+~cs214.269.168-17 node-babel7/upstream/`packages/babel-node/src/_babel-node.ts`: |
| 36 |
@@ -1,4 +1,4 @@ |
| 37 |
|
| 38 |
+import * as commander from "commander"; |
| 39 |
import Module from "module"; |
| 40 |
import { inspect } from "util"; |
| 41 |
import path from "path"; |