Compare commits

...

1 Commits

Author SHA1 Message Date
FrozenPandaz a153f326be fix(core): dynamically require string-width 2024-10-16 13:49:35 -04:00
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -369,7 +369,7 @@
"regenerator-runtime": "0.13.7",
"send": "0.17.1",
"shadergradient": "^1.2.14",
"string-width": "^4.2.3",
"string-width": "^7.2.0",
"tailwind-merge": "^2.4.0",
"tailwindcss": "3.4.4",
"three": "^0.166.1",
+1 -1
View File
@@ -60,7 +60,7 @@
"npm-run-path": "^4.0.1",
"open": "^8.4.0",
"semver": "^7.5.3",
"string-width": "^4.2.3",
"string-width": "^7.2.0",
"tar-stream": "~2.2.0",
"tmp": "~0.2.1",
"tsconfig-paths": "^4.1.2",
+2 -1
View File
@@ -1,5 +1,4 @@
import * as chalk from 'chalk';
import * as stringWidth from 'string-width';
import { logger } from './logger';
import { output } from './output';
import { Schema } from './params';
@@ -229,6 +228,8 @@ function generateOptionsOutput(schema: Schema): string {
`--${optionName}` +
(optionConfig.alias ? `, -${optionConfig.alias}` : '');
const { default: stringWidth } =
require('string-width') as typeof import('string-width');
const renderedFlagAndAliasTrueWidth = stringWidth(renderedFlagAndAlias);
if (
renderedFlagAndAliasTrueWidth > requiredSpaceToRenderAllFlagsAndAliases
+2 -2
View File
@@ -145,8 +145,8 @@ importers:
specifier: ^1.2.14
version: 1.2.14(@react-spring/three@9.7.4(@react-three/fiber@8.17.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.166.1))(react@18.3.1)(three@0.166.1))(@react-three/drei@9.112.0(@react-three/fiber@8.17.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.166.1))(@types/react@18.3.1)(@types/three@0.166.0)(immer@9.0.21)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.166.1))(@react-three/fiber@8.17.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.166.1))(react@18.3.1)(three@0.166.1)
string-width:
specifier: ^4.2.3
version: 4.2.3
specifier: ^7.2.0
version: 7.2.0
tailwind-merge:
specifier: ^2.4.0
version: 2.5.2