Skip to content

Commit

Permalink
Disable esModuleInterop TypeScript compiler option
Browse files Browse the repository at this point in the history
  • Loading branch information
niklashigi committed Jan 15, 2021
1 parent 955f360 commit 25b56aa
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import path from 'path'
import parseArgs from 'yargs-parser'
import chalk from 'chalk'
import Listr from 'listr'
import tempy from 'tempy'
import * as path from 'path'
import parseArgs = require('yargs-parser')
import chalk = require('chalk')
import Listr = require('listr')
import tempy = require('tempy')

import patchApk, { showAppBundleWarning } from './patch-apk'
import { patchXapkBundle, patchApksBundle } from './patch-app-bundle'
Expand Down
4 changes: 2 additions & 2 deletions src/patch-apk.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as path from 'path'
import { once } from 'events'
import * as fs from './utils/fs'
import Listr from 'listr'
import chalk from 'chalk'
import Listr = require('listr')
import chalk = require('chalk')

import { TaskOptions } from './cli'
import downloadTools from './tasks/download-tools'
Expand Down
4 changes: 2 additions & 2 deletions src/patch-app-bundle.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { unzip, zip } from '@tybys/cross-zip'
import * as fs from './utils/fs'
import * as path from 'path'
import globby from 'globby'
import Listr from 'listr'
import globby = require('globby')
import Listr = require('listr')

import patchApk from './patch-apk'
import { TaskOptions } from './cli'
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/apply-patches.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path'
import Listr from 'listr'
import Listr = require('listr')

import modifyManifest from './modify-manifest'
import createNetworkSecurityConfig from './create-netsec-config'
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/disable-certificate-pinning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as os from 'os'
import * as path from 'path'
import * as fs from '../utils/fs'

import globby from 'globby'
import escapeStringRegexp from 'escape-string-regexp'
import globby = require('globby')
import escapeStringRegexp = require('escape-string-regexp')
import { ListrTaskWrapper } from 'listr'
import observeAsync from '../utils/observe-async'

Expand Down
2 changes: 1 addition & 1 deletion src/tasks/download-tools.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Listr from 'listr'
import Listr = require('listr')

import createToolDownloadTask from '../utils/download-tool'
import { TaskOptions } from '../cli'
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/modify-manifest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from '../utils/fs'
import xml from 'xml-js'
import xml = require('xml-js')

export default async function modifyManifest(path: string) {
const fileXml = xml.xml2js(await fs.readFile(path, 'utf-8'), {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/apktool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { map } from 'rxjs/operators'
import chalk from 'chalk'
import chalk = require('chalk')

import { executeJar } from '../utils/execute-jar'
import observeProcess from '../utils/observe-process'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/execute-jar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa'
import execa = require('execa')

export function executeJar(path: string, args: string[]) {
return execa('java', ['-jar', path, ...args], {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "es2018",
"module": "commonjs",
"outDir": "dist",
"esModuleInterop": true,
"noUnusedLocals": true
},
"include": ["src/**/*"]
Expand Down

0 comments on commit 25b56aa

Please sign in to comment.