Skip to content

Commit

Permalink
fix(types): unforce esModuleInterop in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
beckend committed Jun 22, 2019
1 parent e8454b4 commit c2d39b6
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 65 deletions.
134 changes: 76 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli/config/migrate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createLogger } from 'bs-logger'
import stringifyJson from 'fast-json-stable-stringify'
import * as stringifyJson from 'fast-json-stable-stringify'
import { existsSync } from 'fs'
import { stringify as stringifyJson5 } from 'json5'
import { basename, resolve } from 'path'
Expand Down
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LogContexts, Logger } from 'bs-logger'
import { Arguments } from 'yargs'
import yargsParser from 'yargs-parser'
import yargsParser = require('yargs-parser')

import { rootLogger } from '../util/logger'

Expand Down
2 changes: 1 addition & 1 deletion src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

import { LogContexts, LogLevels, Logger } from 'bs-logger'
import bufferFrom from 'buffer-from'
import bufferFrom = require('buffer-from')
import stableStringify = require('fast-json-stable-stringify')
import { readFileSync, writeFileSync } from 'fs'
import mkdirp = require('mkdirp')
Expand Down
4 changes: 2 additions & 2 deletions src/config/config-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/
import { LogContexts, Logger } from 'bs-logger'
import { existsSync, readFileSync, realpathSync } from 'fs'
import json5 from 'json5'
import json5 = require('json5')
import { dirname, isAbsolute, join, normalize, resolve } from 'path'
import semver from 'semver'
import semver = require('semver')
import {
CompilerOptions,
CustomTransformers,
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as _babel from 'babel__core'
import _ts, { CompilerOptions, SourceFile, TransformerFactory } from 'typescript'
import { CompilerOptions, SourceFile, TransformerFactory } from 'typescript'
// tslint:disable-next-line:no-duplicate-imports
import * as _ts from 'typescript'

import { ConfigSet } from './config/config-set'

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"declaration": false,
"noEmit": true,
"downlevelIteration": true,
"esModuleInterop": true,
"esModuleInterop": false,
"experimentalDecorators": true,
"importHelpers": false,
"inlineSourceMap": true,
Expand Down

0 comments on commit c2d39b6

Please sign in to comment.