Skip to content

Commit a2f03dc

Browse files
committed
added check to apple fn
1 parent c094863 commit a2f03dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/node-addon-examples/scripts/verify-prebuilds.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ async function verifyApplePrebuild(dirent: fs.Dirent) {
4444
console.log("Verifying Apple prebuild", dirent.name, "in", dirent.parentPath);
4545
for (const arch of EXPECTED_XCFRAMEWORK_PLATFORMS) {
4646
const archDir = path.join(dirent.parentPath, dirent.name, arch);
47+
if (!fs.existsSync(archDir)) {
48+
return;
49+
}
4750
for (const file of await fs.promises.readdir(archDir, {
4851
withFileTypes: true,
4952
})) {

0 commit comments

Comments
 (0)