Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: move @heroku/linewrap to @oclif/linewrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 9, 2018
1 parent 80e54c6 commit dd8dbeb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https://github.com/oclif/cli-ux/issues",
"dependencies": {
"@heroku/linewrap": "^1.0.0",
"@oclif/linewrap": "^1.0.0",
"@oclif/screen": "^1.0.2",
"ansi-styles": "^3.2.1",
"cardinal": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getErrorMessage(err: any, opts: {stack?: boolean} = {}): string
const context = err['cli-ux'] && err['cli-ux'].context

function wrap(msg: string): string {
const linewrap = require('@heroku/linewrap')
const linewrap = require('@oclif/linewrap')
return linewrap(6, deps.screen.errtermwidth, {
skip: /^\$ .*$/,
skipScheme: 'ansi-color',
Expand Down
2 changes: 1 addition & 1 deletion src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as _ from 'lodash'
import deps from './deps'

function linewrap(length: number, s: string): string {
const lw = require('@heroku/linewrap')
const lw = require('@oclif/linewrap')
return lw(length, deps.screen.stdtermwidth, {
skipScheme: 'ansi-color',
})(s).trim()
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# yarn lockfile v1


"@heroku/linewrap@^1.0.0":
"@oclif/linewrap@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@heroku/linewrap/-/linewrap-1.0.0.tgz#a9d4e99f0a3e423a899b775f5f3d6747a1ff15c6"
resolved "https://registry.yarnpkg.com/@oclif/linewrap/-/linewrap-1.0.0.tgz#aedcb64b479d4db7be24196384897b5000901d91"

"@oclif/screen@^1.0.2":
version "1.0.2"
Expand Down

0 comments on commit dd8dbeb

Please sign in to comment.