Skip to content

Commit

Permalink
Merge branch 'master' into support-not-looping-over-lists
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Sep 24, 2023
2 parents f193021 + 2f9ce21 commit 68fe1f5
Show file tree
Hide file tree
Showing 52 changed files with 229 additions and 231 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,27 @@
],
"devDependencies": {
"@sindresorhus/tsconfig": "^4.0.0",
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vitest/coverage-v8": "^0.34.4",
"@vitest/ui": "^0.34.4",
"eslint": "^8.49.0",
"@types/node": "^20.6.5",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vitest/coverage-v8": "^0.34.5",
"@vitest/ui": "^0.34.5",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-xo": "^0.43.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"globby": "^13.2.2",
"husky": "^8.0.3",
"lerna": "^7.2.0",
"lerna": "^7.3.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"turbo": "^1.10.13",
"turbo": "^1.10.14",
"typescript": "^5.2.2",
"vitest": "^0.34.4"
"vitest": "^0.34.5"
},
"workspaces": [
"packages/*",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
"dependencies": {
"@inquirer/type": "^1.1.4",
"@types/mute-stream": "^0.0.1",
"@types/node": "^20.6.0",
"@types/node": "^20.6.5",
"@types/wrap-ansi": "^3.0.0",
"ansi-escapes": "^4.3.2",
"chalk": "^4.1.2",
"cli-spinners": "^2.9.0",
"cli-spinners": "^2.9.1",
"cli-width": "^4.1.0",
"figures": "^3.2.0",
"mute-stream": "^1.0.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/core/src/lib/screen-manager.mts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { CursorPos } from 'node:readline';
import cliWidth from 'cli-width';
import stripAnsi from 'strip-ansi';
import ansiEscapes from 'ansi-escapes';
import { breakLines } from './utils.mjs';
import { breakLines, readlineWidth } from './utils.mjs';
import type { InquirerReadline } from './read-line.type.mjs';

const height = (content: string): number => content.split('\n').length;
Expand Down Expand Up @@ -43,7 +42,7 @@ export default class ScreenManager {
// SetPrompt will change cursor position, now we can get correct value
this.cursorPos = this.rl.getCursorPos();

const width = cliWidth({ defaultWidth: 80, output: this.rl.output });
const width = readlineWidth();
content = breakLines(content, width);
bottomContent = breakLines(bottomContent, width);

Expand Down
2 changes: 1 addition & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"dependencies": {
"@inquirer/type": "^1.1.4",
"@types/mute-stream": "^0.0.1",
"@types/node": "^20.6.0",
"@types/node": "^20.6.5",
"ansi-escapes": "^4.3.2",
"mute-stream": "^1.0.0",
"strip-ansi": "^6.0.1"
Expand Down
Loading

0 comments on commit 68fe1f5

Please sign in to comment.