Skip to content

Commit

Permalink
Remove NODE_ENV check
Browse files Browse the repository at this point in the history
Motivation: tj#1955
  • Loading branch information
aweebit committed Aug 11, 2023
1 parent 5828e16 commit f7fd986
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const { suggestSimilar } = require('./suggestSimilar');

// @ts-check

const PRODUCTION = process.env.NODE_ENV === 'production';

class Command extends EventEmitter {
/**
* Initialize a new `Command`.
Expand Down Expand Up @@ -940,7 +938,7 @@ Expecting one of '${allowedValues.join("', '")}'`);

_parseSubroutine(async, userArgsCallback, argv, parseOptions) {
const methodName = async ? 'parseAsync' : 'parse';
if (!PRODUCTION && this._implicitlyCreated) {
if (this._implicitlyCreated) {
console.warn(`Called .${methodName}() on subcommand '${this._name}' added with .command().
Call on top-level command instead`);
}
Expand Down

0 comments on commit f7fd986

Please sign in to comment.