Fix outputted index.js for cli
This commit is contained in:
parent
f56891c118
commit
ef1d1f04e3
11
apps/cli/bin/index.js
Executable file → Normal file
11
apps/cli/bin/index.js
Executable file → Normal file
@ -1,4 +1,3 @@
|
|||||||
#!/nix/store/bmmjbvb8hishfrg78ygjlynpq3ikpl39-nodejs-20.15.1/bin/node
|
|
||||||
import process$1 from "node:process";
|
import process$1 from "node:process";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
import tty from "node:tty";
|
import tty from "node:tty";
|
||||||
@ -401,7 +400,7 @@ for (const model of usedModels) {
|
|||||||
styles[model] = {
|
styles[model] = {
|
||||||
get() {
|
get() {
|
||||||
const { level } = this;
|
const { level } = this;
|
||||||
return function (...arguments_) {
|
return function(...arguments_) {
|
||||||
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
|
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
|
||||||
return createBuilder(this, styler, this[IS_EMPTY]);
|
return createBuilder(this, styler, this[IS_EMPTY]);
|
||||||
};
|
};
|
||||||
@ -411,7 +410,7 @@ for (const model of usedModels) {
|
|||||||
styles[bgModel] = {
|
styles[bgModel] = {
|
||||||
get() {
|
get() {
|
||||||
const { level } = this;
|
const { level } = this;
|
||||||
return function (...arguments_) {
|
return function(...arguments_) {
|
||||||
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
|
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
|
||||||
return createBuilder(this, styler, this[IS_EMPTY]);
|
return createBuilder(this, styler, this[IS_EMPTY]);
|
||||||
};
|
};
|
||||||
@ -841,7 +840,7 @@ function isTRPCClientError(cause) {
|
|||||||
* @deprecated
|
* @deprecated
|
||||||
* Delete in next major
|
* Delete in next major
|
||||||
*/
|
*/
|
||||||
cause instanceof Error && cause.name === "TRPCClientError";
|
cause instanceof Error && cause.name === "TRPCClientError";
|
||||||
}
|
}
|
||||||
function isTRPCErrorResponse(obj) {
|
function isTRPCErrorResponse(obj) {
|
||||||
return isObject(obj) && isObject(obj.error) && typeof obj.error.code === "number" && typeof obj.error.message === "string";
|
return isObject(obj) && isObject(obj.error) && typeof obj.error.code === "number" && typeof obj.error.message === "string";
|
||||||
@ -1683,7 +1682,7 @@ let Help$3 = class Help {
|
|||||||
subcommandTerm(cmd) {
|
subcommandTerm(cmd) {
|
||||||
const args = cmd.registeredArguments.map((arg) => humanReadableArgName$1(arg)).join(" ");
|
const args = cmd.registeredArguments.map((arg) => humanReadableArgName$1(arg)).join(" ");
|
||||||
return cmd._name + (cmd._aliases[0] ? "|" + cmd._aliases[0] : "") + (cmd.options.length ? " [options]" : "") + // simplistic check for non-help option
|
return cmd._name + (cmd._aliases[0] ? "|" + cmd._aliases[0] : "") + (cmd.options.length ? " [options]" : "") + // simplistic check for non-help option
|
||||||
(args ? " " + args : "");
|
(args ? " " + args : "");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Get the option term to show in the list of options.
|
* Get the option term to show in the list of options.
|
||||||
@ -4374,7 +4373,7 @@ commander.Help = Help$1;
|
|||||||
commander.CommanderError = CommanderError$1;
|
commander.CommanderError = CommanderError$1;
|
||||||
commander.InvalidArgumentError = InvalidArgumentError$1;
|
commander.InvalidArgumentError = InvalidArgumentError$1;
|
||||||
commander.InvalidOptionArgumentError = InvalidArgumentError$1;
|
commander.InvalidOptionArgumentError = InvalidArgumentError$1;
|
||||||
(function (module, exports) {
|
(function(module, exports) {
|
||||||
const commander$1 = commander;
|
const commander$1 = commander;
|
||||||
exports = module.exports = {};
|
exports = module.exports = {};
|
||||||
exports.program = new commander$1.Command();
|
exports.program = new commander$1.Command();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user