Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 7996855

Browse files
committed
fix: updated deps
1 parent b8ba249 commit 7996855

File tree

8 files changed

+78
-102
lines changed

8 files changed

+78
-102
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
keys:
1414
- v1-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
1515
- v1-yarn-{{checksum ".circleci/config.yml"}}
16-
- run: .circleci/greenkeeper
17-
- run: yarn add -D nyc@11 @oclif/nyc-config@0
16+
- run: yarn
17+
- run: yarn add -D nyc@13 @oclif/nyc-config@1
1818
- run: |
1919
$NYC yarn test
2020
$NYC report --reporter text-lcov > coverage.lcov
@@ -29,7 +29,7 @@ jobs:
2929
- add_ssh_keys
3030
- checkout
3131
- restore_cache: *restore_cache
32-
- run: yarn global add @oclif/semantic-release@1 semantic-release@12
32+
- run: yarn global add @oclif/semantic-release@3 semantic-release@15
3333
- run: yarn --frozen-lockfile
3434
- run: |
3535
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH

.circleci/greenkeeper

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"wrap-ansi": "^4.0.0"
1313
},
1414
"devDependencies": {
15-
"@oclif/tslint": "^2.0.0",
15+
"@oclif/tslint": "^3.1.0",
1616
"@types/chai": "^4.1.4",
1717
"@types/clean-stack": "^1.3.0",
1818
"@types/fs-extra": "^5.0.4",
@@ -23,7 +23,7 @@
2323
"@types/wrap-ansi": "^3.0.0",
2424
"chai": "^4.1.2",
2525
"chalk": "^2.4.1",
26-
"fancy-test": "^1.4.0",
26+
"fancy-test": "^1.4.1",
2727
"mocha": "^5.2.0",
2828
"ts-node": "^7.0.1",
2929
"tslint": "^5.11.0",

src/errors/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class CLIError extends Error {
4545

4646
protected get bang() {
4747
let red: typeof Chalk.red = ((s: string) => s) as any
48-
try {red = require('chalk').red} catch {}
48+
try { red = require('chalk').red } catch {}
4949
return red(process.platform === 'win32' ? '»' : '›')
5050
}
5151
}
@@ -59,7 +59,7 @@ export namespace CLIError {
5959

6060
protected get bang() {
6161
let yellow: typeof Chalk.yellow = ((s: string) => s) as any
62-
try {yellow = require('chalk').yellow} catch {}
62+
try { yellow = require('chalk').yellow } catch {}
6363
return yellow(process.platform === 'win32' ? '»' : '›')
6464
}
6565
}

src/handle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const handle = (err: any) => {
1616
if (config.errorLogger && err.code !== 'EEXIT') {
1717
config.errorLogger.log(stack)
1818
config.errorLogger.flush()
19-
.then(() => process.exit(exitCode))
20-
.catch(console.error)
19+
.then(() => process.exit(exitCode))
20+
.catch(console.error)
2121
} else process.exit(exitCode)
2222
} catch (e) {
2323
console.error(err.stack)

test/handle.test.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -19,61 +19,61 @@ describe('handle', () => {
1919
})
2020

2121
fancy
22-
.stderr()
23-
.finally(() => delete process.exitCode)
24-
.it('displays an error from root handle module', ctx => {
25-
require('../handle')(new Error('x'))
26-
expect(ctx.stderr).to.contain('Error: x')
27-
expect(process.exitCode).to.equal(1)
28-
})
22+
.stderr()
23+
.finally(() => delete process.exitCode)
24+
.it('displays an error from root handle module', ctx => {
25+
require('../handle')(new Error('x'))
26+
expect(ctx.stderr).to.contain('Error: x')
27+
expect(process.exitCode).to.equal(1)
28+
})
2929

3030
fancy
31-
.stderr()
32-
.finally(() => delete process.exitCode)
33-
.it('shows an unhandled error', ctx => {
34-
handle(new Error('x'))
35-
expect(ctx.stderr).to.contain('Error: x')
36-
expect(process.exitCode).to.equal(1)
37-
})
31+
.stderr()
32+
.finally(() => delete process.exitCode)
33+
.it('shows an unhandled error', ctx => {
34+
handle(new Error('x'))
35+
expect(ctx.stderr).to.contain('Error: x')
36+
expect(process.exitCode).to.equal(1)
37+
})
3838

3939
fancy
40-
.stderr()
41-
.finally(() => delete process.exitCode)
42-
.it('handles a badly formed error object', () => {
43-
handle({status: 400})
44-
expect(process.exitCode).to.equal(1)
45-
})
40+
.stderr()
41+
.finally(() => delete process.exitCode)
42+
.it('handles a badly formed error object', () => {
43+
handle({status: 400})
44+
expect(process.exitCode).to.equal(1)
45+
})
4646

4747
fancy
48-
.stderr()
49-
.finally(() => delete process.exitCode)
50-
.it('shows a cli error', ctx => {
51-
handle(new CLIError('x'))
52-
expect(ctx.stderr).to.equal(` ${x} Error: x\n`)
53-
expect(process.exitCode).to.equal(2)
54-
})
48+
.stderr()
49+
.finally(() => delete process.exitCode)
50+
.it('shows a cli error', ctx => {
51+
handle(new CLIError('x'))
52+
expect(ctx.stderr).to.equal(` ${x} Error: x\n`)
53+
expect(process.exitCode).to.equal(2)
54+
})
5555

5656
fancy
57-
.stdout()
58-
.stderr()
59-
.finally(() => delete process.exitCode)
60-
.it('hides an exit error', ctx => {
61-
handle(new ExitError())
62-
expect(ctx.stdout).to.equal('')
63-
expect(ctx.stderr).to.equal('')
64-
expect(process.exitCode).to.equal(0)
65-
})
57+
.stdout()
58+
.stderr()
59+
.finally(() => delete process.exitCode)
60+
.it('hides an exit error', ctx => {
61+
handle(new ExitError())
62+
expect(ctx.stdout).to.equal('')
63+
expect(ctx.stderr).to.equal('')
64+
expect(process.exitCode).to.equal(0)
65+
})
6666

6767
fancy
68-
.stderr()
69-
.do(() => config.errlog = errlog)
70-
.finally(() => config.errlog = undefined)
71-
.finally(() => delete process.exitCode)
72-
.it('logs when errlog is set', async ctx => {
73-
handle(new CLIError('uh oh!'))
74-
expect(ctx.stderr).to.equal(` ${x} Error: uh oh!\n`)
75-
await config.errorLogger!.flush()
76-
expect(fs.readFileSync(errlog, 'utf8')).to.contain('Error: uh oh!')
77-
expect(process.exitCode).to.equal(2)
78-
})
68+
.stderr()
69+
.do(() => config.errlog = errlog)
70+
.finally(() => config.errlog = undefined)
71+
.finally(() => delete process.exitCode)
72+
.it('logs when errlog is set', async ctx => {
73+
handle(new CLIError('uh oh!'))
74+
expect(ctx.stderr).to.equal(` ${x} Error: uh oh!\n`)
75+
await config.errorLogger!.flush()
76+
expect(fs.readFileSync(errlog, 'utf8')).to.contain('Error: uh oh!')
77+
expect(process.exitCode).to.equal(2)
78+
})
7979
})

test/warn.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const errlog = path.join(__dirname, '../tmp/mytest/warn.log')
88

99
describe('warn', () => {
1010
fancy
11-
.stderr()
12-
.do(() => config.errlog = errlog)
13-
.finally(() => config.errlog = undefined)
14-
.it('warns', async ctx => {
15-
warn('foo!')
16-
expect(ctx.stderr).to.contain('Warning: foo!')
17-
expect(process.exitCode).to.be.undefined
18-
await config.errorLogger!.flush()
19-
expect(fs.readFileSync(errlog, 'utf8')).to.contain('Warning: foo!')
20-
})
11+
.stderr()
12+
.do(() => config.errlog = errlog)
13+
.finally(() => config.errlog = undefined)
14+
.it('warns', async ctx => {
15+
warn('foo!')
16+
expect(ctx.stderr).to.contain('Warning: foo!')
17+
expect(process.exitCode).to.be.undefined
18+
await config.errorLogger!.flush()
19+
expect(fs.readFileSync(errlog, 'utf8')).to.contain('Warning: foo!')
20+
})
2121
})

yarn.lock

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
reflect-metadata "^0.1.12"
2020
tslib "^1.8.1"
2121

22-
"@oclif/tslint@^2.0.0":
23-
version "2.0.0"
24-
resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-2.0.0.tgz#6eb3a43cc288e0e8d84bc0808c3fbcba00d00ea6"
22+
"@oclif/tslint@^3.1.0":
23+
version "3.1.0"
24+
resolved "https://registry.yarnpkg.com/@oclif/tslint/-/tslint-3.1.0.tgz#4beea4ddeeb9e8964f4c9d15d25349db799311a6"
2525
dependencies:
26+
tslint-eslint-rules "^5.4.0"
2627
tslint-xo "^0.9.0"
2728

2829
"@types/chai@^4.1.4":
@@ -238,17 +239,17 @@ esutils@^2.0.2:
238239
version "2.0.2"
239240
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
240241

241-
fancy-test@^1.4.0:
242-
version "1.4.0"
243-
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-1.4.0.tgz#93e8b1904afbcefb496f58a05f6d2d99fc9c4acc"
242+
fancy-test@^1.4.1:
243+
version "1.4.1"
244+
resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-1.4.1.tgz#c87267e01c71185ef4cd5a9cf508eb7e3adbdc94"
244245
dependencies:
245246
"@types/chai" "^4.1.4"
246247
"@types/lodash" "^4.14.116"
247248
"@types/mocha" "^5.2.5"
248249
"@types/nock" "^9.3.0"
249250
"@types/node" "^10.9.4"
250251
"@types/sinon" "^5.0.2"
251-
lodash "^4.17.10"
252+
lodash "^4.17.11"
252253
mock-stdin "^0.3.1"
253254
stdout-stderr "^0.1.9"
254255

@@ -349,9 +350,9 @@ jsonfile@^4.0.0:
349350
optionalDependencies:
350351
graceful-fs "^4.1.6"
351352

352-
lodash@^4.17.10:
353-
version "4.17.10"
354-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
353+
lodash@^4.17.11:
354+
version "4.17.11"
355+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
355356

356357
make-error@^1.1.1:
357358
version "1.3.4"
@@ -513,7 +514,7 @@ tslint-consistent-codestyle@^1.11.0:
513514
tslib "^1.7.1"
514515
tsutils "^2.27.0"
515516

516-
tslint-eslint-rules@^5.3.1:
517+
tslint-eslint-rules@^5.3.1, tslint-eslint-rules@^5.4.0:
517518
version "5.4.0"
518519
resolved "https://registry.yarnpkg.com/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz#e488cc9181bf193fe5cd7bfca213a7695f1737b5"
519520
dependencies:

0 commit comments

Comments
 (0)