Skip to content

Commit

Permalink
fix: Export a "default" property
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Sep 10, 2024
1 parent 4f7abe9 commit ccc52c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/asar.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import * as minimatch from 'minimatch';
import minimatch from 'minimatch';

import fs from './wrapped-fs';
import { Filesystem, FilesystemEntry } from './filesystem';
Expand Down Expand Up @@ -271,3 +271,16 @@ export function uncache(archivePath: string) {
export function uncacheAll() {
disk.uncacheAll();
}

export default {
createPackage,
createPackageWithOptions,
createPackageFromFiles,
statFile,
getRawHeader,
listPackage,
extractFile,
extractAll,
uncache,
uncacheAll,
};
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"moduleResolution": "node",
"declaration": true,
"noImplicitAny": true,
"strictNullChecks": true
"strictNullChecks": true,
"esModuleInterop": true
},
"include": [
"src"
Expand Down

0 comments on commit ccc52c2

Please sign in to comment.