diff --git a/package.json b/package.json index 9012947a..68985dbb 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@types/node": "^10.3.0", "@types/wrap-ansi": "^3.0.0", "chai": "^4.1.2", - "fancy-test": "^1.1.0", + "fancy-test": "^1.1.1", "globby": "^8.0.1", "lodash": "^4.17.10", "mocha": "^5.2.0", diff --git a/src/config.ts b/src/config.ts index 0cbb6c5a..6c1df900 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,7 +1,7 @@ import {CLIError, error, exit, warn} from '@oclif/errors' -import Lodash from 'lodash' -import os from 'os' -import path from 'path' +import * as Lodash from 'lodash' +import * as os from 'os' +import * as path from 'path' import {URL} from 'url' import {format} from 'util' diff --git a/src/ts_node.ts b/src/ts_node.ts index 9d1723d3..b07cdf7c 100644 --- a/src/ts_node.ts +++ b/src/ts_node.ts @@ -1,6 +1,6 @@ -import fs from 'fs' -import path from 'path' -import TSNode from 'ts-node' +import * as fs from 'fs' +import * as path from 'path' +import * as TSNode from 'ts-node' import Debug from './debug' import {loadJSONSync} from './util' diff --git a/src/util.ts b/src/util.ts index 25ec04b0..50ee3bc1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,5 +1,5 @@ // tslint:disable no-implicit-dependencies -import fs from 'fs' +import * as fs from 'fs' const debug = require('debug')('@oclif/config') diff --git a/test/config.test.ts b/test/config.test.ts index 9db7f8f5..77aa92d8 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -1,5 +1,5 @@ -import os from 'os' -import path from 'path' +import * as os from 'os' +import * as path from 'path' import {IConfig, load, PJSON} from '../src' diff --git a/test/typescript.test.ts b/test/typescript.test.ts index 41a4ac5b..0c83048c 100644 --- a/test/typescript.test.ts +++ b/test/typescript.test.ts @@ -1,4 +1,4 @@ -import path from 'path' +import * as path from 'path' import * as Config from '../src' diff --git a/tsconfig.json b/tsconfig.json index 44e6136c..c8a673e2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,6 @@ "importHelpers": true, "module": "commonjs", "outDir": "./lib", - "esModuleInterop": true, - "resolveJsonModule": true, "rootDirs": [ "./src" ], diff --git a/yarn.lock b/yarn.lock index e971df78..1ffbcd63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -435,9 +435,9 @@ extglob@^2.0.2: snapdragon "^0.8.1" to-regex "^3.0.1" -fancy-test@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-1.1.0.tgz#c6bd432c9f816cc6fb048bb98c9a57f1fa517074" +fancy-test@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/fancy-test/-/fancy-test-1.1.1.tgz#22517244313345eb603730587feb1487d460b379" dependencies: "@types/chai" "^4.1.3" "@types/lodash" "^4.14.109"