uilint 0.2.28 → 0.2.29
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
CHANGED
|
@@ -3641,7 +3641,7 @@ program.command("update").description("Update existing style guide with new styl
|
|
|
3641
3641
|
});
|
|
3642
3642
|
});
|
|
3643
3643
|
program.command("install").description("Install UILint integration").option("--force", "Overwrite existing configuration files").action(async (options) => {
|
|
3644
|
-
const { installUI } = await import("./install-ui-
|
|
3644
|
+
const { installUI } = await import("./install-ui-GZBZK2XI.js");
|
|
3645
3645
|
await installUI({ force: options.force });
|
|
3646
3646
|
});
|
|
3647
3647
|
program.command("serve").description("Start WebSocket server for real-time UI linting").option("-p, --port <number>", "Port to listen on", "9234").action(async (options) => {
|
|
@@ -1037,15 +1037,18 @@ function buildGlobalConfigItems(selections) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
return items;
|
|
1039
1039
|
}
|
|
1040
|
-
var
|
|
1040
|
+
var MIN_NODE_MAJOR = 20;
|
|
1041
|
+
var MIN_NODE_MINOR = 19;
|
|
1041
1042
|
function checkNodeVersion() {
|
|
1042
1043
|
const ver = process.versions.node || "";
|
|
1043
|
-
const
|
|
1044
|
-
const major = Number.parseInt(
|
|
1044
|
+
const parts = ver.split(".");
|
|
1045
|
+
const major = Number.parseInt(parts[0] || "", 10);
|
|
1046
|
+
const minor = Number.parseInt(parts[1] || "", 10);
|
|
1047
|
+
const meetsRequirement = Number.isFinite(major) && Number.isFinite(minor) && (major > MIN_NODE_MAJOR || major === MIN_NODE_MAJOR && minor >= MIN_NODE_MINOR);
|
|
1045
1048
|
return {
|
|
1046
|
-
ok:
|
|
1049
|
+
ok: meetsRequirement,
|
|
1047
1050
|
current: ver,
|
|
1048
|
-
required:
|
|
1051
|
+
required: `${MIN_NODE_MAJOR}.${MIN_NODE_MINOR}.0`
|
|
1049
1052
|
};
|
|
1050
1053
|
}
|
|
1051
1054
|
function Header({ subtitle }) {
|
|
@@ -1128,7 +1131,7 @@ function InstallApp({
|
|
|
1128
1131
|
} else {
|
|
1129
1132
|
setError(
|
|
1130
1133
|
new Error(
|
|
1131
|
-
`Node.js ${result.required}+ is required. You are running
|
|
1134
|
+
`Node.js v${result.required}+ is required. You are running v${result.current}.`
|
|
1132
1135
|
)
|
|
1133
1136
|
);
|
|
1134
1137
|
setPhase("error");
|
|
@@ -4750,4 +4753,4 @@ ${pc.blue("Running tests with coverage...")}`);
|
|
|
4750
4753
|
export {
|
|
4751
4754
|
installUI
|
|
4752
4755
|
};
|
|
4753
|
-
//# sourceMappingURL=install-ui-
|
|
4756
|
+
//# sourceMappingURL=install-ui-GZBZK2XI.js.map
|