Skip to content

Commit

Permalink
fix: import for path now compiles correctly after TypeScript was added (
Browse files Browse the repository at this point in the history
#85)

* Fixing import for path after TypeScript was added

* Added esModuleInterop: true, fixed breaking imports after change
  • Loading branch information
BaldvinTh committed Nov 5, 2023
1 parent 1948f1c commit 02119d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions 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';
Expand Down
2 changes: 1 addition & 1 deletion src/debug.ts
@@ -1,3 +1,3 @@
import * as debug from 'debug';
import debug from 'debug';

export const d = debug('electron-universal');
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -13,6 +13,7 @@
],
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"esModuleInterop": true,
"declaration": true
},
"include": [
Expand Down

0 comments on commit 02119d5

Please sign in to comment.