sv 0.16.4 → 0.16.5

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 { _ as name, a as detectPackageManager, d as Command, g as helpConfig, h as forwardExitCode, l as from, n as add, r as create, u as program, v as version } from "./engine-C5O8updH.mjs";
2
+ import { _ as name, a as detectPackageManager, d as Command, g as helpConfig, h as forwardExitCode, l as from, n as add, r as create, u as program, v as version } from "./engine-CCAozEpo.mjs";
3
3
  import { color, resolveCommandArray } from "@sveltejs/sv-utils";
4
4
  import V from "node:process";
5
5
  import { execSync } from "node:child_process";
@@ -1348,7 +1348,7 @@ ${i ? styleText("cyan", x$1) : ""}
1348
1348
  //#endregion
1349
1349
  //#region package.json
1350
1350
  var name = "sv";
1351
- var version = "0.16.4";
1351
+ var version = "0.16.5";
1352
1352
  //#endregion
1353
1353
  //#region src/core/errors.ts
1354
1354
  var UnsupportedError = class extends Error {
@@ -5850,8 +5850,8 @@ var better_auth_default = defineAddon({
5850
5850
  const hasDemo = demoPassword || demoGithub;
5851
5851
  let drizzleDialect;
5852
5852
  let d1 = false;
5853
- sv.devDependency("better-auth", "~1.4.21");
5854
- sv.devDependency("@better-auth/cli", "~1.4.21");
5853
+ sv.devDependency("auth", "^1.6.23");
5854
+ sv.devDependency("better-auth", "^1.6.23");
5855
5855
  sv.file(`drizzle.config.${language}`, transforms.script(({ ast }) => {
5856
5856
  const isProp = (name, node) => node.key.type === "Identifier" && node.key.name === name;
5857
5857
  Walker.walk(ast, null, { Property(node) {
@@ -5975,6 +5975,7 @@ var better_auth_default = defineAddon({
5975
5975
  if (content) return false;
5976
5976
  return dedent`
5977
5977
  // If you see this file, you have not run the auth:schema script yet, but you should!
5978
+ export {};
5978
5979
  `;
5979
5980
  }));
5980
5981
  sv.file(`${directory.lib}/server/db/schema.${language}`, transforms.script(({ ast, js }) => {
@@ -11253,6 +11254,7 @@ const create = new Command("create").description("Scaffold a new project (--add
11253
11254
  }).showHelpAfterError(true);
11254
11255
  async function createProject(cwd, options) {
11255
11256
  if (options.fromPlayground) R$1.warn("Svelte maintainers have not reviewed playgrounds for malicious code! Use at your discretion.");
11257
+ if (options.template === "addon" && options.types === "typescript") R$1.warn(`The addon template does not support TypeScript. The ${color.command("--types")} flag will be ignored.`);
11256
11258
  const promptGroupResult = await pe({
11257
11259
  directory: () => {
11258
11260
  const defaultPath = "./";
@@ -11290,8 +11292,8 @@ async function createProject(cwd, options) {
11290
11292
  });
11291
11293
  },
11292
11294
  language: (o) => {
11293
- if (options.types) return Promise.resolve(options.types);
11294
11295
  if (o.results.template === "addon") return Promise.resolve("none");
11296
+ if (options.types) return Promise.resolve(options.types);
11295
11297
  return Ee({
11296
11298
  message: "Add type checking with TypeScript?",
11297
11299
  initialValue: "typescript",
@@ -1,4 +1,4 @@
1
- import { c as defineAddonOptions, m as create$1, o as officialAddons, s as defineAddon, t as add, y as svDeprecated } from "../engine-C5O8updH.mjs";
1
+ import { c as defineAddonOptions, m as create$1, o as officialAddons, s as defineAddon, t as add, y as svDeprecated } from "../engine-CCAozEpo.mjs";
2
2
  //#region src/index.ts
3
3
  function create(cwdOrOptions, legacyOptions) {
4
4
  if (typeof cwdOrOptions === "string") {
@@ -1,4 +1,4 @@
1
- import { S as __toESM, b as __commonJSMin, f as R, i as addPnpmAllowBuilds, m as create, p as z, t as add, x as __require } from "../engine-C5O8updH.mjs";
1
+ import { S as __toESM, b as __commonJSMin, f as R, i as addPnpmAllowBuilds, m as create, p as z, t as add, x as __require } from "../engine-CCAozEpo.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": "^0.16.4"
25
+ "sv": "^0.16.5"
26
26
  },
27
27
  "devDependencies": {
28
- "sv": "^0.16.4",
28
+ "sv": "^0.16.5",
29
29
  "@sveltejs/sv-utils": "^0.3.1",
30
30
  "@playwright/test": "^1.60.0",
31
31
  "@types/node": "^25.9.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "0.16.4",
3
+ "version": "0.16.5",
4
4
  "type": "module",
5
5
  "description": "A command line interface (CLI) for creating and maintaining Svelte applications",
6
6
  "license": "MIT",