From ccc52c2573e3b506e79ae7c31036e6ba0447851e Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 10 Sep 2024 16:46:21 -0700 Subject: [PATCH] fix: Export a "default" property --- src/asar.ts | 15 ++++++++++++++- tsconfig.json | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/asar.ts b/src/asar.ts index bd0f7aa..2d1b5cb 100644 --- a/src/asar.ts +++ b/src/asar.ts @@ -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'; @@ -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, +}; diff --git a/tsconfig.json b/tsconfig.json index 0833e88..9e5b08d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "moduleResolution": "node", "declaration": true, "noImplicitAny": true, - "strictNullChecks": true + "strictNullChecks": true, + "esModuleInterop": true }, "include": [ "src"