sv 0.10.4 → 0.10.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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { $ as et, A as parseSvelte, B as isVersionUnsupportedBelow, C as dist, G as De, J, K as Fe, O as parseJson, Q as We, T as resolveCommand, X as T, Y as Ke, Z as Ue, a as getUserAgent, at as Option, b as detect, c as packageManagerPrompt, d as from, et as ke, f as commonFilePaths, g as getPackageJson, h as getHighlighter, i as addPnpmBuildDependencies, it as Command, k as parseScript, lt as __toESM, m as formatFiles, n as templates, nt as Vu, o as installDependencies, ot as program, q as Ge, r as AGENT_NAMES, rt as require_picocolors, s as installOption, t as create$1, tt as ze, u as up$1, w as getSharedFiles } from "./create-DJeT6Cfe.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-6J55LDIW.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-jbRIQkth.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.4";
15
+ var version = "0.10.5";
16
16
 
17
17
  //#endregion
18
18
  //#region ../../node_modules/.pnpm/empathic@1.1.0/node_modules/empathic/package.mjs
@@ -1520,7 +1520,6 @@ async function createProject(cwd, options$1) {
1520
1520
  const workspace = await createVirtualWorkspace({
1521
1521
  cwd: projectPath,
1522
1522
  template,
1523
- packageManager: "npm",
1524
1523
  type: language
1525
1524
  });
1526
1525
  if (options$1.addOns || options$1.add.length > 0) {
@@ -1606,7 +1605,7 @@ async function confirmExternalDependencies(dependencies) {
1606
1605
  }
1607
1606
  return installDeps;
1608
1607
  }
1609
- async function createVirtualWorkspace({ cwd, template, packageManager, type }) {
1608
+ async function createVirtualWorkspace({ cwd, template, type }) {
1610
1609
  const override = { dependencies: {} };
1611
1610
  if (template === "minimal" || template === "demo" || template === "library") override.kit = {
1612
1611
  routesDirectory: "src/routes",
@@ -1620,7 +1619,6 @@ async function createVirtualWorkspace({ cwd, template, packageManager, type }) {
1620
1619
  };
1621
1620
  const tentativeWorkspace = await createWorkspace({
1622
1621
  cwd,
1623
- packageManager,
1624
1622
  override
1625
1623
  });
1626
1624
  return {
@@ -3058,9 +3058,13 @@ async function applyAddons({ addons, workspace, addonSetupResults, options: opti
3058
3058
  const status = {};
3059
3059
  const ordered = orderAddons(Object.entries(addons).map(([, addon]) => addon), addonSetupResults);
3060
3060
  for (const addon of ordered) {
3061
+ const workspaceOptions = options$7[addon.id] || {};
3061
3062
  const { files, pnpmBuildDependencies, cancels } = await runAddon({
3062
- workspace,
3063
- workspaceOptions: options$7[addon.id] || {},
3063
+ workspace: await createWorkspace({
3064
+ cwd: workspace.cwd,
3065
+ packageManager: workspace.packageManager
3066
+ }),
3067
+ workspaceOptions,
3064
3068
  addon,
3065
3069
  multiple: ordered.length > 1
3066
3070
  });
package/dist/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { t as create } from "../create-DJeT6Cfe.js";
2
- import { c as officialAddons, n as installAddon } from "../install-6J55LDIW.js";
2
+ import { c as officialAddons, n as installAddon } from "../install-jbRIQkth.js";
3
3
 
4
4
  export { create, installAddon, officialAddons };
package/dist/shared.json CHANGED
@@ -137,7 +137,7 @@
137
137
  "typescript"
138
138
  ],
139
139
  "exclude": [],
140
- "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\n\t\t\"rewriteRelativeImportExtensions\": true,\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\"module\": \"NodeNext\",\n\t\t\"moduleResolution\": \"NodeNext\"\n\t}\n}\n"
140
+ "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\n\t\t\"rewriteRelativeImportExtensions\": true,\n\t\t\"allowJs\": true,\n\t\t\"checkJs\": 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\"module\": \"NodeNext\",\n\t\t\"moduleResolution\": \"NodeNext\"\n\t}\n}\n"
141
141
  },
142
142
  {
143
143
  "name": "vite.config.js",
@@ -157,7 +157,7 @@
157
157
  "typescript",
158
158
  "checkjs"
159
159
  ],
160
- "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\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\"module\": \"NodeNext\",\n\t\t\"moduleResolution\": \"NodeNext\"\n\t}\n}\n"
160
+ "contents": "{\n\t\"extends\": \"./.svelte-kit/tsconfig.json\",\n\t\"compilerOptions\": {\n\t\t\"forceConsistentCasingInFileNames\": true,\n\t\t\"resolveJsonModule\": true,\n\t\t\"skipLibCheck\": true,\n\t\t\"sourceMap\": true,\n\t\t\"module\": \"NodeNext\",\n\t\t\"moduleResolution\": \"NodeNext\"\n\t}\n}\n"
161
161
  }
162
162
  ]
163
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "type": "module",
5
5
  "description": "A CLI for creating and updating SvelteKit projects",
6
6
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  "ps-tree": "^1.2.0",
37
37
  "tinyexec": "^0.3.2",
38
38
  "valibot": "^0.41.0",
39
- "@sveltejs/create": "0.0.0",
40
39
  "@sveltejs/addons": "0.0.0",
41
- "@sveltejs/cli-core": "0.0.0"
40
+ "@sveltejs/cli-core": "0.0.0",
41
+ "@sveltejs/create": "0.0.0"
42
42
  },
43
43
  "keywords": [
44
44
  "create",