diff --git a/src/cli.ts b/src/cli.ts index 10c15ee..d20f2cd 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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' diff --git a/src/patch-apk.ts b/src/patch-apk.ts index a892aa3..f9d5c6c 100644 --- a/src/patch-apk.ts +++ b/src/patch-apk.ts @@ -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' diff --git a/src/patch-app-bundle.ts b/src/patch-app-bundle.ts index 9b09c7b..5e87ece 100644 --- a/src/patch-app-bundle.ts +++ b/src/patch-app-bundle.ts @@ -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' diff --git a/src/tasks/apply-patches.ts b/src/tasks/apply-patches.ts index e0e8fd9..8873290 100644 --- a/src/tasks/apply-patches.ts +++ b/src/tasks/apply-patches.ts @@ -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' diff --git a/src/tasks/disable-certificate-pinning.ts b/src/tasks/disable-certificate-pinning.ts index f6a4cb0..c4342cf 100644 --- a/src/tasks/disable-certificate-pinning.ts +++ b/src/tasks/disable-certificate-pinning.ts @@ -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' diff --git a/src/tasks/download-tools.ts b/src/tasks/download-tools.ts index 36d7278..2734358 100644 --- a/src/tasks/download-tools.ts +++ b/src/tasks/download-tools.ts @@ -1,4 +1,4 @@ -import Listr from 'listr' +import Listr = require('listr') import createToolDownloadTask from '../utils/download-tool' import { TaskOptions } from '../cli' diff --git a/src/tasks/modify-manifest.ts b/src/tasks/modify-manifest.ts index 3df86cf..a5c6e1c 100644 --- a/src/tasks/modify-manifest.ts +++ b/src/tasks/modify-manifest.ts @@ -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'), { diff --git a/src/tools/apktool.ts b/src/tools/apktool.ts index 87972c4..8593e07 100644 --- a/src/tools/apktool.ts +++ b/src/tools/apktool.ts @@ -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' diff --git a/src/utils/execute-jar.ts b/src/utils/execute-jar.ts index c50638b..d9fbb10 100644 --- a/src/utils/execute-jar.ts +++ b/src/utils/execute-jar.ts @@ -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], { diff --git a/tsconfig.json b/tsconfig.json index 5f51870..7967d6b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "target": "es2018", "module": "commonjs", "outDir": "dist", - "esModuleInterop": true, "noUnusedLocals": true }, "include": ["src/**/*"]