зеркало из https://github.com/electron/universal.git
fix: import for path now compiles correctly after TypeScript was added (#85)
* Fixing import for path after TypeScript was added * Added esModuleInterop: true, fixed breaking imports after change
This commit is contained in:
Родитель
1948f1caa9
Коммит
02119d5a83
|
@ -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';
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import * as debug from 'debug';
|
||||
import debug from 'debug';
|
||||
|
||||
export const d = debug('electron-universal');
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
],
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"declaration": true
|
||||
},
|
||||
"include": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче