chore(release): drop attw from pack-scan

This commit is contained in:
若麒
2026-06-05 00:35:52 +08:00
parent cdbe5c080d
commit 5d08bcb2a4
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export async function runCheck() {
step("build bailian-cli");
run("pnpm", ["--filter", "bailian-cli", "run", "build"]);
step("pack + scan (publint, attw, gitleaks)");
step("pack + scan (publint, gitleaks)");
packAndScan({ log });
log("\nrelease check passed.");
-9
View File
@@ -13,10 +13,6 @@ function extractTarball(tarball, tempDir, key) {
return extractDir;
}
/**
* pnpm pack each package, then run publint / attw / gitleaks on the tarball
* or the extracted directory. attw only runs on packages that declare types.
*/
export function packAndScan({ log }) {
const tempDir = mkdtempSync(join(tmpdir(), "bailian-release-"));
try {
@@ -29,11 +25,6 @@ export function packAndScan({ log }) {
log(`publint ${pkg.name}`);
run("npx", ["--yes", "publint", extractDir]);
if (json.types) {
log(`attw ${pkg.name}`);
run("npx", ["--yes", "@arethetypeswrong/cli", "--pack", extractDir]);
}
log(`gitleaks ${pkg.name}`);
run("gitleaks", ["detect", "--source", extractDir, "--no-git", "--redact"]);
}