Skip to content

Commit 3823a87

Browse files
committed
Bail if prebuilds don't exist yet
1 parent 49def72 commit 3823a87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

prepublish.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const path = require('path')
44
const prebuilds = path.join(__dirname, 'prebuilds')
55

66
function makeExecutable(dir) {
7+
if (!fs.existsSync(dir)) return
8+
79
for (const item of fs.readdirSync(dir, { withFileTypes: true })) {
810
const entry = path.join(dir, item.name)
911

0 commit comments

Comments
 (0)