Skip to content

Commit 0ad4a89

Browse files
author
Benjamin E. Coe
authored
chore(deps): update to latest standardx (#99)
1 parent f04f343 commit 0ad4a89

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
env:
2222
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
2323
- run: npm test
24+
- run: npm run check
2425
windows:
2526
runs-on: windows-latest
2627
steps:

lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ function alignCenter (str: string, width: number): string {
380380
}
381381

382382
let mixin: Mixin
383-
export function cliui (opts: Partial<UIOptions> = {}, _mixin: Mixin) {
383+
export function cliui (opts: Partial<UIOptions>, _mixin: Mixin) {
384384
mixin = _mixin
385385
return new UI({
386-
width: opts.width || getWindowWidth(),
387-
wrap: opts.wrap
386+
width: opts?.width || getWindowWidth(),
387+
wrap: opts?.wrap
388388
})
389389
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"test": "c8 mocha ./test/*.cjs",
2222
"test:esm": "c8 mocha ./test/esm/cliui-test.mjs",
2323
"postest": "check",
24-
"posttest": "npm run check",
2524
"coverage": "c8 report --check-coverage",
2625
"precompile": "rimraf build",
2726
"compile": "tsc",
@@ -70,7 +69,7 @@
7069
"mocha": "^8.1.1",
7170
"rimraf": "^3.0.2",
7271
"rollup": "^2.23.1",
73-
"standardx": "^5.0.0",
72+
"standardx": "^7.0.0",
7473
"typescript": "^4.0.0"
7574
},
7675
"files": [

0 commit comments

Comments
 (0)