Skip to content

Commit

Permalink
Merge pull request #33 from vallemar/main
Browse files Browse the repository at this point in the history
fix: android hooks error
  • Loading branch information
ammarahm-ed authored Oct 18, 2024
2 parents 9f89f19 + b91c2c4 commit 1f4be62
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/core/hooks/android/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { glob } from 'glob';
import type { GlobOptions } from 'glob';
import * as path from 'path';
import { promisify } from 'util';
const globPromise = promisify(glob);
export const readFile = promisify(fs.readFile);
export const readFileSync = fs.readFileSync;
export const exists = promisify(fs.exists);
Expand Down Expand Up @@ -34,16 +35,7 @@ export function globProm(
pattern: string,
options: GlobOptions
): Promise<string[]> {
return new Promise((resolve, reject) => {
glob(pattern, options).then(
(matches) => {
resolve(matches as Array<string>);
},
(err) => {
reject(err);
}
);
});
return globPromise(pattern, options) as Promise<Array<string>>;
}

export type AndroidDependencyParams = {
Expand Down

0 comments on commit 1f4be62

Please sign in to comment.