Skip to content

Commit 1b1213f

Browse files
authored
fix: execa sync scripts (#4547)
* fix: use named execa export in sync scripts * chore: add execa dependency * chore(scripts): 移除过时的 tnpm 同步脚本 该脚本用于同步 tnpm 包,但相关流程已不再需要或已被其他方式替代。 删除此脚本以清理代码库。
1 parent fcea8a9 commit 1b1213f

5 files changed

Lines changed: 124 additions & 18 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@types/node": "22.12.0",
1010
"@vercel/ncc": "0.38.4",
1111
"autocannon": "7.15.0",
12+
"execa": "9.6.1",
1213
"fs-extra": "11.3.3",
1314
"jest": "29.7.0",
1415
"lerna": "8.1.2",

pnpm-lock.yaml

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

scripts/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { execSync } = require('child_process');
2-
const execa = require('execa');
2+
const { execa } = require('execa');
33
const { resolve } = require('path');
44

55
const originData = execSync('npx lerna ls --json').toString();

scripts/sync.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

scripts/sync_status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { execSync } = require('child_process');
2-
const execa = require('execa');
2+
const { execa } = require('execa');
33

44
const originData = execSync('npx lerna ls --json').toString();
55
const data = JSON.parse(originData);

0 commit comments

Comments
 (0)