fix(pipeline): preserve package manifest ownership
This commit is contained in:
@@ -396,10 +396,8 @@ function compressCesiumGlb(area) {
|
|||||||
finishedAt: new Date(finished).toISOString(),
|
finishedAt: new Date(finished).toISOString(),
|
||||||
durationMs: finished - started,
|
durationMs: finished - started,
|
||||||
inputs: {},
|
inputs: {},
|
||||||
outputs: {
|
// package promotes these staged files, so only its manifest owns final paths.
|
||||||
glb: fileRecord(area.outputs.glb),
|
outputs: {},
|
||||||
metadata: fileRecord(area.outputs.metadata),
|
|
||||||
},
|
|
||||||
summary: {
|
summary: {
|
||||||
sourceGlb: glbSummary(sourceDigest),
|
sourceGlb: glbSummary(sourceDigest),
|
||||||
glb: glbSummary(compressedDigest),
|
glb: glbSummary(compressedDigest),
|
||||||
|
|||||||
@@ -478,12 +478,18 @@ function stageManifestStatus(area, configPath = null) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
stage: "compress",
|
stage: "compress",
|
||||||
expected: fs.existsSync(area.outputs.glb),
|
expected: fs.existsSync(stageManifestPath(area, "compress")),
|
||||||
|
inputs: {},
|
||||||
|
outputs: {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
stage: "package",
|
||||||
|
expected: fs.existsSync(area.outputs.packageManifest),
|
||||||
inputs: {},
|
inputs: {},
|
||||||
outputs: {
|
outputs: {
|
||||||
glb: area.outputs.glb,
|
packageDir: area.outputs.packageDir,
|
||||||
metadata: area.outputs.metadata,
|
manifest: area.outputs.packageManifest,
|
||||||
cesiumPreview: area.outputs.cesiumPreview,
|
primaryGlb: area.outputs.packagePrimaryGlb,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user