mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-03 06:51:53 -04:00
18 lines
442 B
TypeScript
18 lines
442 B
TypeScript
import execa from 'execa'
|
|
import path from 'path'
|
|
|
|
function build (target: string) {
|
|
execa.sync('pkg', ['../pnpm/dist/pnpm.cjs', `--out-path=../artifacts/${target}`, `--targets=node14-${target}`], {
|
|
cwd: path.join(__dirname, '..'),
|
|
stdio: 'inherit',
|
|
})
|
|
}
|
|
|
|
build('win-x64')
|
|
build('linux-x64')
|
|
build('linuxstatic-x64')
|
|
build('macos-x64')
|
|
if (process.platform === 'linux' || process.platform === 'darwin') {
|
|
build('macos-arm64')
|
|
}
|