diff --git a/src/asar-utils.ts b/src/asar-utils.ts index 65a95cf..fe4bfef 100644 --- a/src/asar-utils.ts +++ b/src/asar-utils.ts @@ -1,10 +1,10 @@ -import * as asar from '@electron/asar'; +import asar from '@electron/asar'; import { execFileSync } from 'child_process'; -import * as crypto from 'crypto'; -import * as fs from 'fs-extra'; -import * as path from 'path'; -import * as minimatch from 'minimatch'; -import * as os from 'os'; +import crypto from 'crypto'; +import fs from 'fs-extra'; +import path from 'path'; +import minimatch from 'minimatch'; +import os from 'os'; import { d } from './debug'; const LIPO = 'lipo'; diff --git a/src/debug.ts b/src/debug.ts index e01d4c8..e5de091 100644 --- a/src/debug.ts +++ b/src/debug.ts @@ -1,3 +1,3 @@ -import * as debug from 'debug'; +import debug from 'debug'; export const d = debug('electron-universal'); diff --git a/src/index.ts b/src/index.ts index 65eb5d6..b6faf28 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import { spawn } from '@malept/cross-spawn-promise'; import * as asar from '@electron/asar'; import * as crypto from 'crypto'; import * as fs from 'fs-extra'; -import * as minimatch from 'minimatch'; +import minimatch from 'minimatch'; import * as os from 'os'; import * as path from 'path'; import * as plist from 'plist'; diff --git a/tsconfig.json b/tsconfig.json index bb91a1e..fcac990 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ ], "allowSyntheticDefaultImports": true, "moduleResolution": "node", + "esModuleInterop": true, "declaration": true }, "include": [