Skip to content

Commit

Permalink
feat: add async glob
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jan 3, 2025
1 parent acf1b6a commit aa04fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from "node:path";
import Cli from "#core/cli";
import { readConfig } from "#core/config";
import ExternalResourceBuilder from "#core/external-resource-builder";
import glob from "#core/glob";
import { globSync } from "#core/glob";
import { resolve } from "#core/utils";
import Uws from "#lib/uws";

Expand Down Expand Up @@ -32,7 +32,7 @@ const meta = { "uws": "v" + readConfig( cwd + "/package.json" ).version };

const resources = [];

for ( const file of glob( "*.node", { cwd } ) ) {
for ( const file of globSync( "*.node", { cwd } ) ) {
const [ platform, architecture, node ] = path.basename( file ).replace( "uws_", "" ).replace( ".node", "" ).split( "_" );

if ( !ARCHITECTURES.has( architecture ) ) continue;
Expand Down

0 comments on commit aa04fa6

Please sign in to comment.