sv 0.9.0 → 0.9.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.
@@ -1,4 +1,4 @@
1
- import { Element, T, Tag, __commonJS, __export, __toESM as __toESM$1, __toESM$1 as __toESM, be, detect, esm_exports, getUserAgent, parseCss$1, parseHtml, parseHtml$1, parseJson$1, parseScript, parseScript$1, parseSvelte, require_picocolors, require_picocolors$1, resolveCommand, serializeScript, stripAst, up, walk, walk_exports } from "./package-manager-DO5R9a6p.js";
1
+ import { Element, T, Tag, __commonJS, __export, __toESM, __toESM$1, be, detect, esm_exports, getUserAgent, parseCss$1, parseHtml, parseHtml$1, parseJson$1, parseScript, parseScript$1, parseSvelte, require_picocolors, require_picocolors$1, resolveCommand, serializeScript, stripAst, up, walk, walk_exports } from "./package-manager-DO5R9a6p.js";
2
2
  import fs, { existsSync, lstatSync, readdirSync } from "node:fs";
3
3
  import path, { dirname, join } from "node:path";
4
4
  import process$1, { stdin, stdout } from "node:process";
@@ -889,7 +889,7 @@ const addPlugin = (ast, options$6) => {
889
889
 
890
890
  //#endregion
891
891
  //#region packages/cli/commands/add/utils.ts
892
- var import_picocolors$5 = __toESM(require_picocolors$1(), 1);
892
+ var import_picocolors$5 = __toESM$1(require_picocolors$1(), 1);
893
893
  function getPackageJson(cwd) {
894
894
  const packageText = readFile(cwd, commonFilePaths.packageJson);
895
895
  if (!packageText) {
@@ -1060,7 +1060,7 @@ function parseKitOptions(cwd) {
1060
1060
 
1061
1061
  //#endregion
1062
1062
  //#region packages/cli/lib/install.ts
1063
- var import_picocolors$4 = __toESM(require_picocolors$1(), 1);
1063
+ var import_picocolors$4 = __toESM$1(require_picocolors$1(), 1);
1064
1064
  async function installAddon({ addons, cwd, options: options$6, packageManager = "npm" }) {
1065
1065
  const workspace = await createWorkspace({
1066
1066
  cwd,
@@ -1253,8 +1253,8 @@ else if (y > 0) ret += `${CSI}${y}B`;
1253
1253
  beep
1254
1254
  };
1255
1255
  } });
1256
- var import_src$1 = __toESM$1(require_src(), 1);
1257
- var import_picocolors$3 = __toESM$1(require_picocolors(), 1);
1256
+ var import_src$1 = __toESM(require_src(), 1);
1257
+ var import_picocolors$3 = __toESM(require_picocolors(), 1);
1258
1258
  function hu({ onlyFirst: e$1 = !1 } = {}) {
1259
1259
  const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
1260
1260
  return new RegExp(t, e$1 ? void 0 : "g");
@@ -1989,9 +1989,9 @@ B$1 = new WeakMap(), k$1 = new WeakMap(), I = new WeakMap(), v$1 = new WeakMap()
1989
1989
  e$1 ? this.filteredOptions = D$1.filter((t) => x$1(this, I).call(this, e$1, t)) : this.filteredOptions = [...D$1], m(this, B$1, FD(this.focusedValue, this.filteredOptions)), this.focusedValue = this.filteredOptions[x$1(this, B$1)]?.value, this.multiple || (this.focusedValue !== void 0 ? this.toggleSelected(this.focusedValue) : this.deselectAll());
1990
1990
  }
1991
1991
  };
1992
- var import_picocolors$1 = __toESM$1(require_picocolors(), 1);
1993
- var import_picocolors$2 = __toESM$1(require_picocolors(), 1);
1994
- var import_src = __toESM$1(require_src(), 1);
1992
+ var import_picocolors$1 = __toESM(require_picocolors(), 1);
1993
+ var import_picocolors$2 = __toESM(require_picocolors(), 1);
1994
+ var import_src = __toESM(require_src(), 1);
1995
1995
  function Pe() {
1996
1996
  return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
1997
1997
  }
@@ -2691,7 +2691,7 @@ else return true;
2691
2691
  if (version.patch === below.patch) return false;
2692
2692
  return undefined;
2693
2693
  }
2694
- var import_picocolors = __toESM$1(require_picocolors(), 1);
2694
+ var import_picocolors = __toESM(require_picocolors(), 1);
2695
2695
  var colors = import_picocolors.default;
2696
2696
 
2697
2697
  //#endregion
@@ -2703,7 +2703,7 @@ var devtools_json_default = defineAddon({
2703
2703
  options: {},
2704
2704
  run: ({ sv, typescript }) => {
2705
2705
  const ext = typescript ? "ts" : "js";
2706
- sv.devDependency("vite-plugin-devtools-json", "^0.2.0");
2706
+ sv.devDependency("vite-plugin-devtools-json", "^1.0.0");
2707
2707
  sv.file(`vite.config.${ext}`, (content) => {
2708
2708
  const { ast, generateCode } = parseScript$1(content);
2709
2709
  const vitePluginName = "devtoolsJson";
package/dist/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { AGENT_NAMES, Command, De, Fe, Ge, J, Ke, Option, T, Ue, Vu, We, __toESM$1 as __toESM, addPnpmBuildDependencies, create, detect, et, from, getUserAgent, installDependencies, installOption, ke, packageManagerPrompt, program, require_picocolors$1 as require_picocolors, resolveCommand, templates, up, ze } from "./package-manager-DO5R9a6p.js";
3
- import { applyAddons, communityAddonIds, createWorkspace, formatFiles, getAddonDetails, getCommunityAddon, getHighlighter, isVersionUnsupportedBelow, officialAddons, setupAddons } from "./addons-ZFgzq16L.js";
3
+ import { applyAddons, communityAddonIds, createWorkspace, formatFiles, getAddonDetails, getCommunityAddon, getHighlighter, isVersionUnsupportedBelow, officialAddons, setupAddons } from "./addons-DPvkmr43.js";
4
4
  import fs, { existsSync } from "node:fs";
5
5
  import path, { dirname, join } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
@@ -12,7 +12,7 @@ import { pipeline } from "node:stream/promises";
12
12
 
13
13
  //#region packages/cli/package.json
14
14
  var name = "sv";
15
- var version = "0.9.0";
15
+ var version = "0.9.1";
16
16
  var type = "module";
17
17
  var description = "A CLI for creating and updating SvelteKit projects";
18
18
  var license = "MIT";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { create } from "./package-manager-DO5R9a6p.js";
2
- import { installAddon, officialAddons } from "./addons-ZFgzq16L.js";
2
+ import { installAddon, officialAddons } from "./addons-DPvkmr43.js";
3
3
 
4
4
  export { create, installAddon, officialAddons };
package/dist/shared.json CHANGED
@@ -60,7 +60,7 @@
60
60
  "typescript"
61
61
  ],
62
62
  "exclude": [],
63
- "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\n\t\t\"allowJs\": true,\n\t\t\"checkJs\": true,\n\t\t\"esModuleInterop\": true,\n\t\t\"forceConsistentCasingInFileNames\": true,\n\t\t\"resolveJsonModule\": true,\n\t\t\"skipLibCheck\": true,\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true,\n\t\t\"moduleResolution\": \"bundler\"\n\t}\n\t// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias\n\t// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files\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"
63
+ "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\n\t\t\"allowJs\": true,\n\t\t\"checkJs\": true,\n\t\t\"esModuleInterop\": true,\n\t\t\"forceConsistentCasingInFileNames\": true,\n\t\t\"resolveJsonModule\": true,\n\t\t\"skipLibCheck\": true,\n\t\t\"sourceMap\": true,\n\t\t\"strict\": true,\n\t\t\"moduleResolution\": \"bundler\"\n\t}\n\t// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias\n\t// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files\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"
64
64
  },
65
65
  {
66
66
  "name": "svelte.config.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "A CLI for creating and updating SvelteKit projects",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "tinyexec": "^0.3.2",
38
38
  "valibot": "^0.41.0",
39
39
  "@sveltejs/addons": "0.0.0",
40
- "@sveltejs/cli-core": "0.0.0",
41
- "@sveltejs/create": "0.0.0"
40
+ "@sveltejs/create": "0.0.0",
41
+ "@sveltejs/cli-core": "0.0.0"
42
42
  },
43
43
  "keywords": [
44
44
  "create",