Skip to content

Commit 07cd188

Browse files
committed
feat: add async glob
1 parent 940c5be commit 07cd188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/lib/sqlite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from "node:path";
44
import { readConfig } from "#core/config";
55
import ExternalResourceBuilder from "#core/external-resource-builder";
66
import fetch from "#core/fetch";
7-
import glob from "#core/glob";
7+
import { globSync } from "#core/glob";
88
import Zip from "#core/zip";
99

1010
const USE_LATEST_SQLITE = true,
@@ -69,7 +69,7 @@ export default class ExternalResource extends ExternalResourceBuilder {
6969
} );
7070
if ( res.status ) return result( 500 );
7171

72-
const files = glob( "build/Release/better_sqlite3.node", { "cwd": this.#cwd } );
72+
const files = globSync( "build/Release/better_sqlite3.node", { "cwd": this.#cwd } );
7373

7474
if ( !files.length ) return result( 500 );
7575

0 commit comments

Comments
 (0)