From ef1d1f04e31e80f9ae84adc317478ce5ef28fd3a Mon Sep 17 00:00:00 2001 From: Ryan Pandya Date: Fri, 8 Nov 2024 19:54:54 -0800 Subject: [PATCH] Fix outputted index.js for cli --- apps/cli/bin/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) mode change 100755 => 100644 apps/cli/bin/index.js diff --git a/apps/cli/bin/index.js b/apps/cli/bin/index.js old mode 100755 new mode 100644 index c301a8a..f6bbae0 --- a/apps/cli/bin/index.js +++ b/apps/cli/bin/index.js @@ -1,4 +1,3 @@ -#!/nix/store/bmmjbvb8hishfrg78ygjlynpq3ikpl39-nodejs-20.15.1/bin/node import process$1 from "node:process"; import os from "node:os"; import tty from "node:tty"; @@ -401,7 +400,7 @@ for (const model of usedModels) { styles[model] = { get() { const { level } = this; - return function (...arguments_) { + return function(...arguments_) { const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]); return createBuilder(this, styler, this[IS_EMPTY]); }; @@ -411,7 +410,7 @@ for (const model of usedModels) { styles[bgModel] = { get() { const { level } = this; - return function (...arguments_) { + return function(...arguments_) { const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]); return createBuilder(this, styler, this[IS_EMPTY]); }; @@ -841,7 +840,7 @@ function isTRPCClientError(cause) { * @deprecated * Delete in next major */ - cause instanceof Error && cause.name === "TRPCClientError"; + cause instanceof Error && cause.name === "TRPCClientError"; } function isTRPCErrorResponse(obj) { 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) { 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 - (args ? " " + args : ""); + (args ? " " + args : ""); } /** * Get the option term to show in the list of options. @@ -4374,7 +4373,7 @@ commander.Help = Help$1; commander.CommanderError = CommanderError$1; commander.InvalidArgumentError = InvalidArgumentError$1; commander.InvalidOptionArgumentError = InvalidArgumentError$1; -(function (module, exports) { +(function(module, exports) { const commander$1 = commander; exports = module.exports = {}; exports.program = new commander$1.Command();