Skip to content

Commit e24fa7c

Browse files
committed
Use execa instead of child_process
1 parent af32684 commit e24fa7c

File tree

3 files changed

+59
-4
lines changed

3 files changed

+59
-4
lines changed

.github/actions/release.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import path from 'path'
22
import { fileURLToPath } from 'url'
33
import fs from 'node:fs/promises'
4-
import child_process from 'child_process'
54
import { promisify } from 'util'
65
import * as github from '@actions/github'
7-
8-
const exec = promisify(child_process.exec)
6+
import { execaCommand } from 'execa'
97

108
declare global {
119
namespace NodeJS {
@@ -32,7 +30,7 @@ VITE_CLIENT_ID=${id}
3230

3331
async function run() {
3432
await fs.writeFile(envPath, envFileContent, 'utf-8')
35-
await exec('pnpm tauri build --target universal-apple-darwin')
33+
await execaCommand('pnpm tauri build --target universal-apple-darwin', { stdio: 'inherit' })
3634

3735
const tauriConf = JSON.parse(
3836
await fs.readFile(tauriConfPath, 'utf-8'),

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@vue/devtools": "^6.5.0",
3232
"async-mutex": "^0.4.0",
3333
"eslint": "^8.32.0",
34+
"execa": "^6.1.0",
3435
"npm-run-all": "^4.1.5",
3536
"sass": "^1.57.1",
3637
"tsx": "^3.12.3",

pnpm-lock.yaml

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)