sv 0.10.1 → 0.10.2

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { $ as ke, C as getSharedFiles, D as parseJson, G as Fe, J as Ke, K as Ge, O as parseScript, Q as et, W as De, X as Ue, Y as T, Z as We, a as getUserAgent, at as program, b as detect, c as packageManagerPrompt, ct as __toESM, d as from, et as ze, f as commonFilePaths, h as getHighlighter, i as addPnpmBuildDependencies, it as Option, k as parseSvelte, m as formatFiles, n as templates, nt as require_picocolors, o as installDependencies, q as J, r as AGENT_NAMES, rt as Command, s as installOption, t as create$1, tt as Vu, u as up$1, w as resolveCommand, z as isVersionUnsupportedBelow } from "./create-BN4H6Ywy.js";
3
- import { a as communityAddonIds, c as officialAddons, d as create$2, f as overrideProperties, i as createWorkspace, l as createDefault, o as getCommunityAddon, r as setupAddons, s as getAddonDetails, t as applyAddons, u as addDefault } from "./install-BeymWyuI.js";
3
+ import { a as communityAddonIds, c as officialAddons, d as create$2, f as overrideProperties, i as createWorkspace, l as createDefault, o as getCommunityAddon, r as setupAddons, s as getAddonDetails, t as applyAddons, u as addDefault } from "./install-DGNvl1vK.js";
4
4
  import { exec, execSync } from "node:child_process";
5
5
  import path, { dirname, join } from "node:path";
6
6
  import fs, { existsSync } from "node:fs";
@@ -12,7 +12,7 @@ import { pipeline } from "node:stream/promises";
12
12
 
13
13
  //#region package.json
14
14
  var name = "sv";
15
- var version = "0.10.1";
15
+ var version = "0.10.2";
16
16
 
17
17
  //#endregion
18
18
  //#region ../../node_modules/.pnpm/empathic@1.1.0/node_modules/empathic/package.mjs
@@ -1407,7 +1407,6 @@ const OptionsSchema = strictObject({
1407
1407
  fromPlayground: optional(string()),
1408
1408
  dirCheck: boolean()
1409
1409
  });
1410
- const defaultPath = "./";
1411
1410
  const create = new Command("create").description("scaffolds a new SvelteKit project").argument("[path]", "where the project will be created").addOption(templateOption).addOption(langOption).option("--no-types").addOption(noAddonsOption).addOption(addOption).option("--no-install", "skip installing dependencies").option("--from-playground <url>", "create a project from the svelte playground").option("--no-dir-check", "even if the folder is not empty, no prompt will be shown").addOption(installOption).configureHelp(helpConfig).action((projectPath, opts) => {
1412
1411
  const cwd = parse(ProjectPathSchema, projectPath);
1413
1412
  const options$1 = parse(OptionsSchema, opts);
@@ -1453,7 +1452,8 @@ async function createProject(cwd, options$1) {
1453
1452
  if (options$1.fromPlayground) T.warn("The Svelte maintainers have not reviewed playgrounds for malicious code. Use at your discretion.");
1454
1453
  const { directory, template, language } = await We({
1455
1454
  directory: () => {
1456
- if (cwd) return Promise.resolve(path.resolve(cwd));
1455
+ const defaultPath = "./";
1456
+ if (cwd) return Promise.resolve(cwd);
1457
1457
  return et({
1458
1458
  message: "Where would you like your project to be created?",
1459
1459
  placeholder: ` (hit Enter to use '${defaultPath}')`,
@@ -1578,7 +1578,7 @@ async function createProject(cwd, options$1) {
1578
1578
  else if (language === "checkjs") argsFormatted.push("--types", "jsdoc");
1579
1579
  else if (language === "none") argsFormatted.push("--no-types");
1580
1580
  if (argsFormattedAddons.length > 0) argsFormatted.push("--add", ...argsFormattedAddons);
1581
- logArgs(packageManager, "create", argsFormatted, [cwd ?? defaultPath]);
1581
+ logArgs(packageManager, "create", argsFormatted, [directory]);
1582
1582
  await addPnpmBuildDependencies(projectPath, packageManager, ["esbuild"]);
1583
1583
  if (packageManager) await installDependencies(packageManager, projectPath);
1584
1584
  return {
@@ -2243,7 +2243,7 @@ const options$3 = defineAddonOptions().add("ide", {
2243
2243
  ],
2244
2244
  required: true
2245
2245
  }).add("setup", {
2246
- question: "What setup you want to use?",
2246
+ question: "What setup would you like to use?",
2247
2247
  type: "select",
2248
2248
  default: "remote",
2249
2249
  options: [{
package/dist/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as create } from "../create-BN4H6Ywy.js";
2
- import { c as officialAddons, n as installAddon } from "../install-BeymWyuI.js";
2
+ import { c as officialAddons, n as installAddon } from "../install-DGNvl1vK.js";
3
3
 
4
4
  export { create, installAddon, officialAddons };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "description": "A CLI for creating and updating SvelteKit projects",
6
6
  "license": "MIT",