@verentis/cli 0.2.10 → 0.2.11
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/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,6 +1119,9 @@ function validateInstallDirectives(install, issues) {
|
|
|
1119
1119
|
if (directive.mode !== void 0 && directive.mode !== "seed" && directive.mode !== "managed") {
|
|
1120
1120
|
error(`${at}.mode must be 'seed' or 'managed' (got '${directive.mode}')`);
|
|
1121
1121
|
}
|
|
1122
|
+
if (directive.phase !== void 0 && (!Number.isInteger(directive.phase) || directive.phase < 0)) {
|
|
1123
|
+
error(`${at}.phase must be a non-negative integer (got '${String(directive.phase)}')`);
|
|
1124
|
+
}
|
|
1122
1125
|
});
|
|
1123
1126
|
}
|
|
1124
1127
|
var SETTING_KEY_PATTERN = /^[a-z0-9]+([.-][a-z0-9]+)*$/;
|