diff --git a/bun.lockb b/bun.lockb index a6fb7f1..717dbc3 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/cspell.json b/cspell.json index 56ba033..ee34a91 100644 --- a/cspell.json +++ b/cspell.json @@ -1,8 +1,14 @@ { - "version": "1.4.9", + "version": "1.4.10", "language": "en", - "import": ["@cspell/dict-npm/cspell-ext.json"], - "ignorePaths": ["examples/deprecated", "dist-jsr", "dist-npm"], + "import": [ + "@cspell/dict-npm/cspell-ext.json" + ], + "ignorePaths": [ + "examples/deprecated", + "dist-jsr", + "dist-npm" + ], "words": [ "alacritty", "alcalzone", diff --git a/examples/src/prompts.ts b/examples/src/prompts.ts index 366fcda..09338c2 100644 --- a/examples/src/prompts.ts +++ b/examples/src/prompts.ts @@ -1,7 +1,7 @@ +import { re } from "@reliverse/relico"; import { msg } from "@reliverse/relinka"; import { detect } from "detect-package-manager"; import { emojify } from "node-emoji"; -import { re } from "@reliverse/relico"; import { anykeyPrompt, spinnerTaskPrompt } from "~/main.js"; import { multiselectPrompt } from "~/main.js"; @@ -36,7 +36,7 @@ const pkg = packageJson; // const pkg = { // name: "@reliverse/prompts", -// version: "1.4.9", +// version: "1.4.10", // description: // "@reliverse/prompts is a powerful library that enables seamless, typesafe, and resilient prompts for command-line applications. Crafted with simplicity and elegance, it provides developers with an intuitive and robust way to build interactive CLIs.", // }; diff --git a/examples/src/simple/input.ts b/examples/src/simple/input.ts index a5aa35b..d04c94b 100644 --- a/examples/src/simple/input.ts +++ b/examples/src/simple/input.ts @@ -1,5 +1,5 @@ -import * as url from "node:url"; import { re } from "@reliverse/relico"; +import * as url from "node:url"; import { input } from "~/prompts/index.js"; diff --git a/jsr.jsonc b/jsr.jsonc index 61aa9ec..c27dcda 100644 --- a/jsr.jsonc +++ b/jsr.jsonc @@ -1,6 +1,6 @@ { "name": "@reliverse/prompts", - "version": "1.4.9", + "version": "1.4.10", "author": "blefnk", "license": "MIT", "exports": "./dist-jsr/main.ts", diff --git a/package.json b/package.json index 561b039..5c73c8d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reliverse/prompts", - "version": "1.4.9", + "version": "1.4.10", "author": "blefnk", "type": "module", "description": "@reliverse/prompts is a powerful library that enables seamless, typesafe, and resilient prompts for command-line applications. Crafted with simplicity and elegance, it provides developers with an intuitive and robust way to build interactive CLIs.", @@ -58,7 +58,7 @@ "@alcalzone/ansi-tokenize": "^0.1.3", "@figliolia/chalk-animation": "^1.0.4", "@reliverse/relico": "^1.0.0", - "@reliverse/relinka": "^1.2.8", + "@reliverse/relinka": "^1.2.9", "@sinclair/typebox": "^0.34.14", "ansi-diff-stream": "^1.2.1", "ansi-escapes": "^7.0.0", @@ -140,9 +140,9 @@ "eslint-plugin-perfectionist": "^4.7.0", "execa": "^9.5.2", "jiti": "^2.4.2", - "knip": "^5.42.3", + "knip": "^5.43.1", "mock-stdin": "^1.0.0", - "p-queue": "^8.0.1", + "p-queue": "^8.1.0", "printj": "^1.3.1", "sentencer": "^0.2.1", "strip-comments": "^2.0.1", diff --git a/src/checkbox/index.ts b/src/checkbox/index.ts index 51b91bb..ae32faf 100644 --- a/src/checkbox/index.ts +++ b/src/checkbox/index.ts @@ -1,5 +1,5 @@ -import ansiEscapes from "ansi-escapes"; import { re } from "@reliverse/relico"; +import ansiEscapes from "ansi-escapes"; import type { PartialDeep } from "~/types/utils.js"; diff --git a/src/confirm/confirm-main.ts b/src/confirm/confirm-main.ts index b8ed39f..827b846 100644 --- a/src/confirm/confirm-main.ts +++ b/src/confirm/confirm-main.ts @@ -5,11 +5,11 @@ import type { } from "@reliverse/relinka"; import type { VariantName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { bar, msg } from "@reliverse/relinka"; import { deleteLastLine } from "@reliverse/relinka"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline/promises"; -import { re } from "@reliverse/relico"; import { colorize } from "~/main.js"; import { completePrompt } from "~/utils/prompt-end.js"; diff --git a/src/date/date.ts b/src/date/date.ts index 2b92773..f55d291 100644 --- a/src/date/date.ts +++ b/src/date/date.ts @@ -1,5 +1,6 @@ import type { ColorName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { deleteLastLine, fmt, @@ -12,7 +13,6 @@ import { Type, type TSchema } from "@sinclair/typebox"; import { Value } from "@sinclair/typebox/value"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline/promises"; -import { re } from "@reliverse/relico"; import { buildRegExp, digit, diff --git a/src/input/input-main.ts b/src/input/input-main.ts index 081fa86..3333231 100644 --- a/src/input/input-main.ts +++ b/src/input/input-main.ts @@ -9,6 +9,7 @@ import type { import type { TSchema } from "@sinclair/typebox"; import type { Interface } from "node:readline/promises"; +import { re } from "@reliverse/relico"; import { bar, deleteLastLine, @@ -18,7 +19,6 @@ import { } from "@reliverse/relinka"; import { Value } from "@sinclair/typebox/value"; import readline from "node:readline/promises"; -import { re } from "@reliverse/relico"; import type { PromptOptions } from "~/main.js"; diff --git a/src/multiselect/multiselect-main.ts b/src/multiselect/multiselect-main.ts index 26bd43c..a902078 100644 --- a/src/multiselect/multiselect-main.ts +++ b/src/multiselect/multiselect-main.ts @@ -1,5 +1,6 @@ import type { BorderColorName, VariantName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { deleteLastLine, msg, @@ -9,7 +10,6 @@ import { } from "@reliverse/relinka"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline"; -import { re } from "@reliverse/relico"; import terminalSize from "terminal-size"; import { completePrompt } from "~/utils/prompt-end.js"; diff --git a/src/multiselect/num-multi-select.ts b/src/multiselect/num-multi-select.ts index e176c65..18f6055 100644 --- a/src/multiselect/num-multi-select.ts +++ b/src/multiselect/num-multi-select.ts @@ -1,3 +1,4 @@ +import { re } from "@reliverse/relico"; import { bar, countLines, @@ -9,7 +10,6 @@ import { import { Value } from "@sinclair/typebox/value"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline/promises"; -import { re } from "@reliverse/relico"; import type { PromptOptions } from "~/types/general.js"; diff --git a/src/range/range.ts b/src/range/range.ts index cc048af..48ea59a 100644 --- a/src/range/range.ts +++ b/src/range/range.ts @@ -1,10 +1,10 @@ import type { Writable } from "stream"; +import { re } from "@reliverse/relico"; import Differ from "ansi-diff-stream"; import esc from "ansi-escapes"; import ui from "cli-styles"; import { EventEmitter } from "events"; -import { re } from "@reliverse/relico"; import precision from "precision"; import stringWidth from "string-width"; import windowSize from "window-size"; diff --git a/src/select/index.ts b/src/select/index.ts index 8181bb7..e50d549 100644 --- a/src/select/index.ts +++ b/src/select/index.ts @@ -1,5 +1,5 @@ -import ansiEscapes from "ansi-escapes"; import { re } from "@reliverse/relico"; +import ansiEscapes from "ansi-escapes"; import type { PartialDeep } from "~/types/utils.js"; diff --git a/src/select/select-main.ts b/src/select/select-main.ts index f7fc938..2e950d2 100644 --- a/src/select/select-main.ts +++ b/src/select/select-main.ts @@ -1,10 +1,10 @@ import type { BorderColorName, VariantName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { deleteLastLine, symbols } from "@reliverse/relinka"; import { msg, type ColorName, type TypographyName } from "@reliverse/relinka"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline"; -import { re } from "@reliverse/relico"; import terminalSize from "terminal-size"; import { completePrompt } from "~/utils/prompt-end.js"; diff --git a/src/select/select-two.ts b/src/select/select-two.ts index 154ae13..36f388e 100644 --- a/src/select/select-two.ts +++ b/src/select/select-two.ts @@ -1,8 +1,8 @@ import type { Key } from "node:readline"; +import { re } from "@reliverse/relico"; import { Value } from "@sinclair/typebox/value"; import { stdout } from "node:process"; -import { re } from "@reliverse/relico"; import type { PromptOptions } from "~/types/general.js"; diff --git a/src/task/spinner.ts b/src/task/spinner.ts index 42f1d4b..c664137 100644 --- a/src/task/spinner.ts +++ b/src/task/spinner.ts @@ -1,8 +1,8 @@ +import { re } from "@reliverse/relico"; import { msg } from "@reliverse/relinka"; import { type SpinnerName } from "cli-spinners"; import process from "node:process"; import ora from "ora"; -import { re } from "@reliverse/relico"; import { cursor, erase } from "sisteransi"; type SimpleSpinnerType = "default" | "dottedCircle" | "boxSpinner"; diff --git a/src/task/task.ts b/src/task/task.ts index 41dcec7..e6ea493 100644 --- a/src/task/task.ts +++ b/src/task/task.ts @@ -1,11 +1,11 @@ import type { Options } from "p-map"; +import { re } from "@reliverse/relico"; import { msg } from "@reliverse/relinka"; import { EventEmitter } from "node:events"; import process from "node:process"; import ora from "ora"; import pMap from "p-map"; -import { re } from "@reliverse/relico"; import { cursor, erase } from "sisteransi"; import type { ProgressBar } from "~/task/types.js"; diff --git a/src/toggle/index.ts b/src/toggle/index.ts index 51ca037..c21a4fa 100644 --- a/src/toggle/index.ts +++ b/src/toggle/index.ts @@ -5,10 +5,10 @@ import type { } from "@reliverse/relinka"; import type { VariantName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { deleteLastLine, msg } from "@reliverse/relinka"; import { stdin as input, stdout as output } from "node:process"; import readline from "node:readline"; -import { re } from "@reliverse/relico"; import { completePrompt } from "~/utils/prompt-end.js"; diff --git a/src/utils/prevent.ts b/src/utils/prevent.ts index 7fc10c3..b4d0880 100644 --- a/src/utils/prevent.ts +++ b/src/utils/prevent.ts @@ -1,9 +1,9 @@ +import { re } from "@reliverse/relico"; import { getExactTerminalWidth, getTerminalWidth, msg, } from "@reliverse/relinka"; -import { re } from "@reliverse/relico"; import terminalSize from "terminal-size"; export type PreventWrongTerminalSizeOptions = { @@ -17,7 +17,7 @@ export type PreventWrongTerminalSizeOptions = { export async function preventWrongTerminalSize({ isDev = false, shouldExit = true, - minWidth = 85, + minWidth = 80, minHeight = 12, sizeErrorDescription = "Please increase the terminal size to run the application", }: PreventWrongTerminalSizeOptions) { diff --git a/src/utils/prompt-end.ts b/src/utils/prompt-end.ts index e84b266..79b8626 100644 --- a/src/utils/prompt-end.ts +++ b/src/utils/prompt-end.ts @@ -1,5 +1,6 @@ import type { BorderColorName, VariantName } from "@reliverse/relinka"; +import { re } from "@reliverse/relico"; import { getExactTerminalWidth, msg, @@ -7,7 +8,6 @@ import { type ColorName, type TypographyName, } from "@reliverse/relinka"; -import { re } from "@reliverse/relico"; /** * Ends the prompt by optionally displaying an end message and running the action if confirmed. diff --git a/src/utils/system.ts b/src/utils/system.ts index 78ed749..270ea24 100644 --- a/src/utils/system.ts +++ b/src/utils/system.ts @@ -4,7 +4,7 @@ export const pm = await detect(); export const pmv = await getNpmVersion(pm); export const pkg = { name: "@reliverse/prompts", - version: "1.4.9", + version: "1.4.10", description: "@reliverse/prompts is a powerful library that enables seamless, typesafe, and resilient prompts for command-line applications. Crafted with simplicity and elegance, it provides developers with an intuitive and robust way to build interactive CLIs.", };