sv 1.0.0-next.2 → 1.0.0-next.3

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/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as Command, B as name, C as pipe, D as union, E as transform, F as forwardExitCode, G as ge, H as Ce, I as helpConfig, J as we, K as le, L as normalizePosix, O as from, P as errorAndExit, R as runAndValidateVerifications, S as picklist, T as string, U as Ee, V as version, W as R$1, Y as R, _ as array, a as verifyCleanWorkingDirectory, b as optional, c as AGENT_NAMES, d as installDependencies, f as installOption, i as create, k as program, n as prepareSvApi, o as formatFiles, p as packageManagerPrompt, q as vt, r as add, s as createWorkspace, u as detectPackageManager, v as boolean, w as strictObject, x as parse$1, y as literal, z as runCommand } from "./engine-BSJyw47Z.mjs";
2
+ import { A as Command, B as name, C as pipe, D as union, E as transform, F as forwardExitCode, G as ge, H as Ce, I as helpConfig, J as we, K as le, L as normalizePosix, O as from, P as errorAndExit, R as runAndValidateVerifications, S as picklist, T as string, U as Ee, V as version, W as R$1, Y as R, _ as array, a as verifyCleanWorkingDirectory, b as optional, c as AGENT_NAMES, d as installDependencies, f as installOption, i as create, k as program, n as prepareSvApi, o as formatFiles, p as packageManagerPrompt, q as vt, r as add, s as createWorkspace, u as detectPackageManager, v as boolean, w as strictObject, x as parse$1, y as literal, z as runCommand } from "./engine-CJqhBXva.mjs";
3
3
  import { Walker, coerceVersion, color, isVersionUnsupportedBelow, js, loadPackageJson, parse, resolveCommandArray, svelteConfig, transforms } from "@sveltejs/sv-utils";
4
4
  import fs from "node:fs";
5
5
  import path from "node:path";
@@ -1339,7 +1339,7 @@ ${i ? styleText("cyan", x$1) : ""}
1339
1339
  //#endregion
1340
1340
  //#region package.json
1341
1341
  var name = "sv";
1342
- var version = "1.0.0-next.2";
1342
+ var version = "1.0.0-next.3";
1343
1343
  //#endregion
1344
1344
  //#region src/core/errors.ts
1345
1345
  var UnsupportedError = class extends Error {
@@ -1444,7 +1444,7 @@ async function runCommand(action) {
1444
1444
  try {
1445
1445
  console.log(color.hidden("HINT: Run \"sv --help\" to get the full list of commands, add-ons, and examples to one-shot and skip interactive prompts."));
1446
1446
  ye(`Welcome to the Svelte CLI! ${color.optional(`(v${version})`)}`);
1447
- const minimumVersion = "18.3.0";
1447
+ const minimumVersion = "22.17.0";
1448
1448
  if (isVersionUnsupportedBelow(V.versions.node, minimumVersion)) R$1.warn(`You are using Node.js ${color.error(V.versions.node)}, please upgrade to Node.js ${color.success(minimumVersion)} or higher.`);
1449
1449
  await action();
1450
1450
  fe("You're all set!");
@@ -6711,7 +6711,7 @@ var drizzle_default = defineAddon({
6711
6711
  if (options.postgresql === "postgres.js") sv.devDependency("postgres", "^3.4.9");
6712
6712
  if (options.sqlite === "better-sqlite3") {
6713
6713
  sv.dependency("better-sqlite3", "^13.0.2");
6714
- sv.devDependency("@types/better-sqlite3", "^7.6.13");
6714
+ sv.devDependency("@types/better-sqlite3", "^9.6.0");
6715
6715
  }
6716
6716
  if (options.sqlite === "libsql" || options.sqlite === "turso") sv.devDependency("@libsql/client", "^0.17.3");
6717
6717
  sv.file(".env", generateEnv(options, false));
@@ -9216,14 +9216,7 @@ async function packageManagerPrompt(cwd) {
9216
9216
  options: [{
9217
9217
  label: "None",
9218
9218
  value: void 0
9219
- }, ...AGENT_NAMES.map((agent) => {
9220
- const installed = isInstalled(agent);
9221
- return {
9222
- value: agent,
9223
- label: installed ? agent : color.dim(`${agent} (not installed)`),
9224
- installed
9225
- };
9226
- }).sort((a, b) => Number(b.installed) - Number(a.installed))],
9219
+ }, ...AGENT_NAMES.filter(isInstalled).map((agent) => ({ value: agent }))],
9227
9220
  initialValue: agent
9228
9221
  });
9229
9222
  if (R$2(pm)) {
package/dist/shared.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "checkjs"
37
37
  ],
38
38
  "exclude": [],
39
- "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true\n\t}\n\t// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes\n\t// from the referenced tsconfig.json - TypeScript does not merge them in\n}\n"
39
+ "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"strict\": true\n\t},\n\t\"include\": [\"src\", \"vite.config.ts\"]\n}\n"
40
40
  },
41
41
  {
42
42
  "name": "package.json",
@@ -68,7 +68,7 @@
68
68
  "none"
69
69
  ],
70
70
  "exclude": [],
71
- "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true\n\t}\n\t// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes\n\t// from the referenced tsconfig.json - TypeScript does not merge them in\n}\n"
71
+ "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"strict\": true\n\t},\n\t\"include\": [\"src\", \"vite.config.ts\"]\n}\n"
72
72
  },
73
73
  {
74
74
  "name": "src/lib/PlaygroundLayout.svelte",
@@ -180,7 +180,7 @@
180
180
  "typescript"
181
181
  ],
182
182
  "exclude": [],
183
- "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true\n\t}\n\t// To make changes to top-level options such as include and exclude, we recommend extending\n\t// the generated config; see https://svelte.dev/docs/kit/configuration#typescript\n}\n"
183
+ "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"strict\": true\n\t},\n\t\"include\": [\"src\", \"vite.config.ts\"]\n}\n"
184
184
  },
185
185
  {
186
186
  "name": "vite.config.ts",
@@ -215,7 +215,7 @@
215
215
  "typescript"
216
216
  ],
217
217
  "exclude": [],
218
- "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true\n\t}\n}\n"
218
+ "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"strict\": true\n\t},\n\t\"include\": [\"src\", \"vite.config.ts\"]\n}\n"
219
219
  },
220
220
  {
221
221
  "name": "vite.config.js",
@@ -235,7 +235,7 @@
235
235
  "typescript",
236
236
  "checkjs"
237
237
  ],
238
- "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true\n\t}\n}\n"
238
+ "contents": "{\n\t\"extends\": \"$app/tsconfig\",\n\t\"compilerOptions\": {\n\t\t\"strict\": true\n\t},\n\t\"include\": [\"src\", \"vite.config.ts\"]\n}\n"
239
239
  }
240
240
  ]
241
241
  }
@@ -1,2 +1,2 @@
1
- import { N as create, g as defineAddonOptions, h as defineAddon, m as officialAddons, t as add } from "../engine-BSJyw47Z.mjs";
1
+ import { N as create, g as defineAddonOptions, h as defineAddon, m as officialAddons, t as add } from "../engine-CJqhBXva.mjs";
2
2
  export { add, create, defineAddon, defineAddonOptions, officialAddons };
@@ -1,4 +1,4 @@
1
- import { M as z, N as create, Q as __toESM, X as __commonJSMin, Z as __require, j as R, l as addPnpmAllowBuilds, t as add } from "../engine-BSJyw47Z.mjs";
1
+ import { M as z, N as create, Q as __toESM, X as __commonJSMin, Z as __require, j as R, l as addPnpmAllowBuilds, t as add } from "../engine-CJqhBXva.mjs";
2
2
  import fs from "node:fs";
3
3
  import path from "node:path";
4
4
  import V from "node:process";
@@ -22,10 +22,10 @@
22
22
  "access": "public"
23
23
  },
24
24
  "peerDependencies": {
25
- "sv": "^1.0.0-next.2"
25
+ "sv": "^1.0.0-next.3"
26
26
  },
27
27
  "devDependencies": {
28
- "sv": "^1.0.0-next.2",
28
+ "sv": "^1.0.0-next.3",
29
29
  "@sveltejs/sv-utils": "^1.0.0-next.2",
30
30
  "@playwright/test": "^1.60.0",
31
31
  "@types/node": "^25.9.1",
@@ -12,7 +12,7 @@
12
12
  "devDependencies": {
13
13
  "@fontsource/fira-mono": "^5.2.7",
14
14
  "@neoconfetti/svelte": "^2.2.2",
15
- "@sveltejs/adapter-auto": "^7.0.1",
15
+ "@sveltejs/adapter-auto": "^8.0.0-next.3",
16
16
  "@sveltejs/kit": "^3.0.0-next.0",
17
17
  "@sveltejs/vite-plugin-svelte": "^7.2.0",
18
18
  "svelte": "^5.56.7",
@@ -23,7 +23,7 @@
23
23
  "svelte": "^5.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@sveltejs/adapter-auto": "^7.0.1",
26
+ "@sveltejs/adapter-auto": "^8.0.0-next.3",
27
27
  "@sveltejs/kit": "^3.0.0-next.0",
28
28
  "@sveltejs/package": "^2.5.8",
29
29
  "@sveltejs/vite-plugin-svelte": "^7.2.0",
@@ -10,7 +10,7 @@
10
10
  "prepare": "svelte-kit sync || echo ''"
11
11
  },
12
12
  "devDependencies": {
13
- "@sveltejs/adapter-auto": "^7.0.1",
13
+ "@sveltejs/adapter-auto": "^8.0.0-next.3",
14
14
  "@sveltejs/kit": "^3.0.0-next.0",
15
15
  "@sveltejs/vite-plugin-svelte": "^7.2.0",
16
16
  "svelte": "^5.56.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "1.0.0-next.2",
3
+ "version": "1.0.0-next.3",
4
4
  "type": "module",
5
5
  "description": "A command line interface (CLI) for creating and maintaining Svelte applications",
6
6
  "license": "MIT",