tss-stack 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -101,11 +101,13 @@ function validatePort(value) {
101
101
  }
102
102
 
103
103
  function validateFields(value) {
104
- if (typeof value !== "string" || value.trim() === "") {
104
+ const raw = Array.isArray(value) ? value.join(",") : String(value ?? "");
105
+
106
+ if (raw.trim() === "") {
105
107
  return "At least one field is required.";
106
108
  }
107
109
 
108
- const parsed = value
110
+ const parsed = raw
109
111
  .split(",")
110
112
  .map((f) => f.trim())
111
113
  .filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tss-stack",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Interactive full-stack Node.js + React + MySQL project generator",
5
5
  "bin": {
6
6
  "tss-stack": "bin/cli.js"