Skip to content

Commit

Permalink
fix(metadatacount): fix incorrect usage of new glob lib
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Aug 16, 2023
1 parent 51939bb commit 1634c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/package/components/MetadataCount.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const glob = require('glob')
import { globSync } from 'glob';
import path from 'path';

export default class MetadataCount {
public static async getMetadataCount(projectDirectory: string, sourceDirectory: string): Promise<number> {
let metadataCount;
try {
let metadataFiles: string[] = await glob(`**/*-meta.xml`, {
let metadataFiles: string[] = globSync(`**/*-meta.xml`, {
cwd: projectDirectory ? path.join(projectDirectory, sourceDirectory) : sourceDirectory,
absolute: true,
});
Expand Down

0 comments on commit 1634c11

Please sign in to comment.