Skip to content

Commit

Permalink
chore: mkdir artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day committed Dec 16, 2023
1 parent 10a155a commit 7249ed3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/artifacts.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {join} from 'node:path'
import {spawn} from 'node:child_process'
import fg from 'fast-glob'
import { mkdirSync } from 'node:fs'

const bindings = [
'bindings-aarch64-apple-darwin',
Expand All @@ -25,6 +26,7 @@ bindings.forEach(async (dir, index) => {
let cmd = ``
bins.forEach(bin => {
const [pkg, file] = bin.split('/')
mkdirSync(join('packages', pkg, dir))
cmd = [cmd, `mv ${join(dir, 'packages', bin)} ${join('packages', pkg, dir, file)}`].join('&&')
})

Expand Down

0 comments on commit 7249ed3

Please sign in to comment.