


























@@ -287,14 +287,15 @@ export async function main(argv = process.argv.slice(2)) {
287287includeFile: isRelevantTypeInput,
288288}) && !hasMissingOutput(QA_CHANNEL_DTS_REQUIRED_OUTPUTS);
289289290-const pendingSteps = [];
290+const prerequisiteSteps = [];
291+const dependentSteps = [];
291292if (mode === "all") {
292293if (!rootDtsFresh) {
293294removeIncrementalStateForMissingOutput({
294295outputPaths: ROOT_DTS_REQUIRED_OUTPUTS,
295296tsBuildInfoPath: "dist/plugin-sdk/.tsbuildinfo",
296297});
297-pendingSteps.push({
298+prerequisiteSteps.push({
298299label: "plugin-sdk boundary dts",
299300args: [runTsgoScript, "-p", "tsconfig.plugin-sdk.dts.json", "--declaration", "true"],
300301env: { OPENCLAW_TSGO_HEAVY_CHECK_LOCK_HELD: "1" },
@@ -310,7 +311,7 @@ export async function main(argv = process.argv.slice(2)) {
310311outputPaths: PACKAGE_DTS_REQUIRED_OUTPUTS,
311312tsBuildInfoPath: "packages/plugin-sdk/dist/.tsbuildinfo",
312313});
313-pendingSteps.push({
314+prerequisiteSteps.push({
314315label: "plugin-sdk package boundary dts",
315316args: [runTsgoScript, "-p", "packages/plugin-sdk/tsconfig.json", "--declaration", "true"],
316317env: { OPENCLAW_TSGO_HEAVY_CHECK_LOCK_HELD: "1" },
@@ -326,7 +327,7 @@ export async function main(argv = process.argv.slice(2)) {
326327outputPaths: QA_CHANNEL_DTS_REQUIRED_OUTPUTS,
327328tsBuildInfoPath: "dist/plugin-sdk/extensions/qa-channel/.tsbuildinfo",
328329});
329-pendingSteps.push({
330+dependentSteps.push({
330331label: "qa-channel boundary dts",
331332args: [
332333runTsgoScript,
@@ -354,16 +355,16 @@ export async function main(argv = process.argv.slice(2)) {
354355}
355356}
356357357-if (pendingSteps.length > 0) {
358-await runNodeSteps(pendingSteps);
359-for (const step of pendingSteps) {
358+if (prerequisiteSteps.length > 0) {
359+await runNodeSteps(prerequisiteSteps);
360+for (const step of prerequisiteSteps) {
360361if (step.stampPath) {
361362writeStampFile(step.stampPath);
362363}
363364}
364365}
365366366-if (mode === "all" && (!entryShimsFresh || pendingSteps.length > 0)) {
367+if (mode === "all" && (!entryShimsFresh || prerequisiteSteps.length > 0)) {
367368await runNodeStep(
368369"plugin-sdk boundary root shims",
369370["--import", "tsx", resolve(repoRoot, "scripts/write-plugin-sdk-entry-dts.ts")],
@@ -372,6 +373,15 @@ export async function main(argv = process.argv.slice(2)) {
372373} else if (mode === "all") {
373374process.stdout.write("[plugin-sdk boundary root shims] fresh; skipping\n");
374375}
376+377+if (dependentSteps.length > 0) {
378+await runNodeSteps(dependentSteps);
379+for (const step of dependentSteps) {
380+if (step.stampPath) {
381+writeStampFile(step.stampPath);
382+}
383+}
384+}
375385} catch (error) {
376386process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
377387process.exit(1);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。