@verentis/cli 0.2.10 → 0.2.12
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 +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,11 +1119,14 @@ 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]+)*$/;
|
|
1125
1128
|
var ENV_VAR_PATTERN = /^[A-Z][A-Z0-9_]*$/;
|
|
1126
|
-
var SETTING_TYPES = ["string", "number", "boolean", "select"];
|
|
1129
|
+
var SETTING_TYPES = ["string", "number", "boolean", "select", "file"];
|
|
1127
1130
|
function validateSettingDeclarations(kind, spec, issues) {
|
|
1128
1131
|
const settings2 = spec.settings;
|
|
1129
1132
|
if (settings2 === void 0) return;
|