Skip to content

Commit

Permalink
fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 17, 2024
1 parent c642c09 commit c24c4c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/babel-cli/src/babel-external-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as commander from "commander";
import { buildExternalHelpers } from "@babel/core";

const { program } = commander.default;
const program = commander.default.program as commander.Command;

function collect(value: unknown, previousValue: Array<string>): Array<string> {
// If the user passed the option with no value, like "babel-external-helpers --whitelist", do nothing.
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-cli/src/babel/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { alphasort } from "./util.ts";

import type { InputOptions } from "@babel/core";

const { program } = Commander.default;
const program = Commander.default.program as Commander.Command;

// Standard Babel input configs.
program.option(
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-node/src/_babel-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { PluginAPI, PluginObject } from "@babel/core";

const require = createRequire(import.meta.url);

const { program } = commander.default;
const program = commander.default.program as commander.Command;

function collect(value: unknown, previousValue: string[]): Array<string> {
// If the user passed the option with no value, like "babel-node file.js --presets", do nothing.
Expand Down

0 comments on commit c24c4c0

Please sign in to comment.