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:
Baldvin Th 2023-11-05 14:37:48 +00:00 коммит произвёл GitHub
Родитель 1948f1caa9
Коммит 02119d5a83
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -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": [