layero 0.11.9 → 0.11.10

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/dist/detect.js +15 -4
  2. package/package.json +2 -2
package/dist/detect.js CHANGED
@@ -122,8 +122,8 @@ const JS_COMMENT_RE = /\/\/[^\n]*|\/\*[\s\S]*?\*\//gm;
122
122
  function hasDep(pkg, name) {
123
123
  return Boolean(pkg && ((pkg.dependencies ?? {})[name] ?? (pkg.devDependencies ?? {})[name]));
124
124
  }
125
- /** Mirror of the builder's static-host pre-flight warning for the two
126
- * frameworks that build a server by default (Nuxt, SvelteKit). */
125
+ /** Mirror of the builder's pre-flight warning for the two frameworks whose
126
+ * default build may not run on Layero as is (Nuxt, SvelteKit). */
127
127
  function ssrWarning(snap, framework) {
128
128
  const pkg = snap.packageJson;
129
129
  if (framework === "nuxt") {
@@ -150,10 +150,21 @@ function ssrWarning(snap, framework) {
150
150
  return undefined;
151
151
  const allDeps = { ...(pkg?.dependencies ?? {}), ...(pkg?.devDependencies ?? {}) };
152
152
  const serverAdapter = Object.keys(allDeps).find((d) => d.startsWith("@sveltejs/adapter-") && d !== "@sveltejs/adapter-static");
153
+ // adapter-node is a server Layero runs in a container — nothing to warn
154
+ // about. Until 29.09.2026 this said "Layero hosts static sites only",
155
+ // which stopped being true when containers arrived (T-20260929-7).
156
+ if (serverAdapter === "@sveltejs/adapter-node")
157
+ return undefined;
158
+ const choose = "Pick one yourself: @sveltejs/adapter-static builds a static site, " +
159
+ "@sveltejs/adapter-node builds a server that Layero runs in a container.";
160
+ if (serverAdapter === "@sveltejs/adapter-auto") {
161
+ return ("SvelteKit uses @sveltejs/adapter-auto: it picks an adapter for platforms it knows, " +
162
+ `Layero is not one of them, so the build will produce nothing. ${choose}`);
163
+ }
153
164
  if (serverAdapter) {
154
- return `SvelteKit использует ${serverAdapter} (серверный адаптер). Layero хостит только статику — поставьте @sveltejs/adapter-static.`;
165
+ return `SvelteKit uses ${serverAdapter}, an adapter for another platform; its output will not run on Layero. ${choose}`;
155
166
  }
156
- return "SvelteKit без явного адаптера — поставьте @sveltejs/adapter-static для статического хостинга.";
167
+ return `SvelteKit has no adapter, so the build has nothing to output. ${choose}`;
157
168
  }
158
169
  return undefined;
159
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layero",
3
- "version": "0.11.9",
3
+ "version": "0.11.10",
4
4
  "description": "Layero CLI — deploy a directory or a repo to hosting with build servers in Russia. JSON events and exit codes for AI agents and CI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,7 +57,7 @@
57
57
  "chalk": "^5.3.0",
58
58
  "commander": "^12.1.0",
59
59
  "ignore": "^5.3.2",
60
- "layero-detection": "^0.1.11",
60
+ "layero-detection": "^0.1.12",
61
61
  "open": "^10.1.0",
62
62
  "tar": "^7.4.3"
63
63
  },