Skip to content

Commit 02ece3b

Browse files
committed
refactor(project): Use workspace version in stage name
1 parent 16b6d08 commit 02ece3b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/project/lib/specifications/Project.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Project extends Specification {
2020
#currentStage;
2121
#currentStageReadIndex = -1;
2222
#currentStageName = "<source>";
23+
#workspaceVersion = 0;
2324

2425
constructor(parameters) {
2526
super(parameters);
@@ -370,8 +371,9 @@ class Project extends Specification {
370371
*
371372
*/
372373
sealWorkspace() {
374+
this.#workspaceVersion++;
373375
this.#currentStage = null; // Unset stage - This blocks further getWorkspace() calls
374-
this.#currentStageName = "<final>";
376+
this.#currentStageName = `<final - workspace version ${this.#workspaceVersion}>`;
375377
this.#currentStageReadIndex = this.#stages.length - 1; // Read from all stages
376378

377379
// Unset "current" reader/writer. They will be recreated on demand

0 commit comments

Comments
 (0)