Skip to content

Commit c09364f

Browse files
committed
fix: Refactor tarball creation to use execFileSync
1 parent a3a2aa6 commit c09364f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/generateTarballs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { execSync } from 'child_process';
1+
import { execSync, execFileSync } from 'child_process';
22
import { existsSync, mkdirSync, readdirSync, readFileSync, unlinkSync } from 'fs';
33
import inquirer from 'inquirer';
44
import { join, resolve } from 'path';
@@ -106,7 +106,7 @@ async function main() {
106106
const tarballPath = resolve(tarballsDir, tarballName);
107107

108108
process.chdir(projectDir);
109-
execSync(`yarn pack --filename ${tarballPath}`, {
109+
execFileSync('yarn', ['pack', '--filename', tarballPath], {
110110
maxBuffer: 1024 * 1024 * 10, // 10MB buffer
111111
stdio: 'pipe',
112112
});

0 commit comments

Comments
 (0)