@reventlessdev/reventless-spec 3.0.0-alpha.158 → 3.0.0-alpha.160

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.160 (2026-10-08)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/reventless-spec
9
+
10
+
11
+
12
+
13
+
14
+ # 3.0.0-alpha.159 (2026-10-08)
15
+
16
+ ### Bug Fixes
17
+
18
+ * **spec:** check-lifecycle leaves an app's lifecycle-model.json alone when a plugin could not be read ([70202bc](https://github.com/ReventlessDev/reventless-core/commit/70202bc78491e797638919e649238690e8466e27))
19
+
20
+
6
21
  # 3.0.0-alpha.158 (2026-10-06)
7
22
 
8
23
  **Note:** Version bump only for package @reventlessdev/reventless-spec
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-spec",
3
- "version": "3.0.0-alpha.158",
3
+ "version": "3.0.0-alpha.160",
4
4
  "description": "Specifications for Reventless",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "sury": "11.0.0",
27
27
  "sury-ppx": "11.0.0",
28
28
  "yaml": "^2.8.3",
29
- "@reventlessdev/rescript-node": "2.0.0-alpha.21"
29
+ "@reventlessdev/rescript-node": "2.0.0-alpha.22"
30
30
  },
31
31
  "devDependencies": {
32
32
  "rescript": "12.3.1",
@@ -1504,6 +1504,7 @@ let main = () =>
1504
1504
  let exampleDir = root.dir
1505
1505
  let derived = []
1506
1506
  let dirs = pluginDirsIn(exampleDir)
1507
+ let failedBefore = Array.length(failures)
1507
1508
 
1508
1509
  for j in 0 to Array.length(dirs) - 1 {
1509
1510
  switch dirs->Array.get(j) {
@@ -1531,7 +1532,10 @@ let main = () =>
1531
1532
  }
1532
1533
  }
1533
1534
 
1534
- if Array.length(dirs) > 0 && !json {
1535
+ // A plugin that could not be read derived nothing, so the golden would lose its commands
1536
+ // without a scenario having changed: it is left as it is until every plugin reads.
1537
+ let complete = Array.length(failures) == failedBefore
1538
+ if Array.length(dirs) > 0 && complete && !json {
1535
1539
  let dir = NodePath.join([exampleDir, "schema"])
1536
1540
  if !(dir->NodeFs.existsSync) {
1537
1541
  NodeFs.mkdirSync(dir, {recursive: true})
@@ -1243,6 +1243,7 @@ function main() {
1243
1243
  let exampleDir = root.dir;
1244
1244
  let derived = [];
1245
1245
  let dirs = pluginDirsIn(exampleDir);
1246
+ let failedBefore = failures.length;
1246
1247
  for (let j = 0, j_finish = dirs.length; j < j_finish; ++j) {
1247
1248
  let pluginDir = dirs[j];
1248
1249
  if (pluginDir !== undefined) {
@@ -1266,7 +1267,8 @@ function main() {
1266
1267
  }
1267
1268
  }
1268
1269
  }
1269
- if (dirs.length !== 0 && !json) {
1270
+ let complete = failures.length === failedBefore;
1271
+ if (dirs.length !== 0 && complete && !json) {
1270
1272
  let dir = Nodepath.join(exampleDir, "schema");
1271
1273
  if (!Nodefs.existsSync(dir)) {
1272
1274
  Nodefs.mkdirSync(dir, {