Skip to content

Commit ccc52c2

Browse files
fix: Export a "default" property
1 parent 4f7abe9 commit ccc52c2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/asar.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path';
2-
import * as minimatch from 'minimatch';
2+
import minimatch from 'minimatch';
33

44
import fs from './wrapped-fs';
55
import { Filesystem, FilesystemEntry } from './filesystem';
@@ -271,3 +271,16 @@ export function uncache(archivePath: string) {
271271
export function uncacheAll() {
272272
disk.uncacheAll();
273273
}
274+
275+
export default {
276+
createPackage,
277+
createPackageWithOptions,
278+
createPackageFromFiles,
279+
statFile,
280+
getRawHeader,
281+
listPackage,
282+
extractFile,
283+
extractAll,
284+
uncache,
285+
uncacheAll,
286+
};

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"moduleResolution": "node",
1616
"declaration": true,
1717
"noImplicitAny": true,
18-
"strictNullChecks": true
18+
"strictNullChecks": true,
19+
"esModuleInterop": true
1920
},
2021
"include": [
2122
"src"

0 commit comments

Comments
 (0)