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

Commit 5332289

Browse files
committed
feat: typescript 3
1 parent cb37f87 commit 5332289

File tree

4 files changed

+293
-197
lines changed

4 files changed

+293
-197
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66
"bugs": "https://github.com/oclif/errors/issues",
77
"dependencies": {
88
"clean-stack": "^1.3.0",
9-
"fs-extra": "^6.0.1",
9+
"fs-extra": "^7.0.0",
1010
"indent-string": "^3.2.0",
1111
"strip-ansi": "^4.0.0",
1212
"wrap-ansi": "^3.0.1"
1313
},
1414
"devDependencies": {
15-
"@oclif/tslint": "^1.1.1",
16-
"@types/chai": "^4.1.3",
15+
"@oclif/tslint": "^2.0.0",
16+
"@types/chai": "^4.1.4",
1717
"@types/clean-stack": "^1.3.0",
18-
"@types/fs-extra": "^5.0.2",
18+
"@types/fs-extra": "^5.0.4",
1919
"@types/indent-string": "^3.0.0",
20-
"@types/mocha": "^5.2.0",
21-
"@types/node": "^10.0.7",
20+
"@types/mocha": "^5.2.5",
21+
"@types/node": "^10.7.1",
2222
"@types/strip-ansi": "^3.0.0",
2323
"@types/wrap-ansi": "^3.0.0",
2424
"chai": "^4.1.2",
2525
"chalk": "^2.4.1",
26-
"concurrently": "^3.5.1",
27-
"fancy-test": "^1.0.8",
28-
"mocha": "^5.1.1",
29-
"ts-node": "^6.0.3",
30-
"tslint": "^5.10.0",
31-
"typescript": "^2.8.3"
26+
"concurrently": "^3.6.1",
27+
"fancy-test": "^1.2.0",
28+
"mocha": "^5.2.0",
29+
"ts-node": "^7.0.1",
30+
"tslint": "^5.11.0",
31+
"typescript": "^3.0.1"
3232
},
3333
"engines": {
3434
"node": ">=8.0.0"

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import {Logger} from './logger'
44

5-
const g = global.oclif = global.oclif || {}
5+
const g = (global as any).oclif = (global as any).oclif || {}
66

77
function displayWarnings() {
88
if (process.listenerCount('warning') > 1) return

src/logger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ export class Logger {
2525
msg = stripAnsi(chomp(msg))
2626
let lines = msg.split('\n').map(l => `${timestamp()} ${l}`.trimRight())
2727
this.buffer.push(...lines)
28+
// tslint:disable-next-line no-console
2829
this.flush(50).catch(console.error)
2930
}
3031

31-
async flush(waitForMs: number = 0) {
32+
async flush(waitForMs = 0) {
3233
await wait(waitForMs)
3334
this.flushing = this.flushing.then(async () => {
3435
if (this.buffer.length === 0) return

0 commit comments

Comments
 (0)