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

Commit

Permalink
feat: typescript 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Aug 17, 2018
1 parent b822437 commit 74d7acb
Show file tree
Hide file tree
Showing 5 changed files with 229 additions and 226 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
},
"devDependencies": {
"@oclif/errors": "^1.1.2",
"@oclif/parser": "^3.5.2",
"@oclif/tslint": "^1.1.2",
"@oclif/parser": "^3.5.3",
"@oclif/tslint": "^2.0.0",
"@types/chai": "^4.1.4",
"@types/globby": "^8.0.0",
"@types/indent-string": "^3.0.0",
"@types/lodash": "^4.14.110",
"@types/mocha": "^5.2.3",
"@types/node": "^10.3.6",
"@types/lodash": "^4.14.116",
"@types/mocha": "^5.2.5",
"@types/node": "^10.7.1",
"@types/wrap-ansi": "^3.0.0",
"chai": "^4.1.2",
"fancy-test": "^1.2.0",
"globby": "^8.0.1",
"lodash": "^4.17.10",
"mocha": "^5.2.0",
"ts-node": "^7.0.0",
"tslint": "^5.10.0",
"typescript": "^2.9.2"
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.0.1"
},
"engines": {
"node": ">=8.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Hook, Hooks} from './hooks'
import {PJSON} from './pjson'
import * as Plugin from './plugin'
import {Topic} from './topic'
import {tsPath} from './ts_node'
import {tsPath} from './ts-node'
import {compact, flatMap, loadJSON, uniq} from './util'

export type PlatformTypes = 'darwin' | 'linux' | 'win32' | 'aix' | 'freebsd' | 'openbsd' | 'sunos'
Expand Down Expand Up @@ -156,7 +156,7 @@ export class Config implements IConfig {
shell!: string
windows!: boolean
userAgent!: string
debug: number = 0
debug = 0
npmRegistry?: string
pjson!: PJSON.CLI
userPJSON?: PJSON.User
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Debug from './debug'
import {Manifest} from './manifest'
import {PJSON} from './pjson'
import {Topic} from './topic'
import {tsPath} from './ts_node'
import {tsPath} from './ts-node'
import {compact, exists, flatMap, loadJSON, mapValues} from './util'

export interface Options {
Expand Down Expand Up @@ -178,7 +178,7 @@ export class Plugin implements IPlugin {
return cmd
}

protected async _manifest(ignoreManifest: boolean, errorOnManifestCreate: boolean = false): Promise<Manifest> {
protected async _manifest(ignoreManifest: boolean, errorOnManifestCreate = false): Promise<Manifest> {
const readManifest = async (dotfile = false): Promise<Manifest | undefined> => {
try {
const p = path.join(this.root, `${dotfile ? '.' : '' }oclif.manifest.json`)
Expand Down
File renamed without changes.
Loading

0 comments on commit 74d7acb

Please sign in to comment.