sv 0.11.1 → 0.11.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.mjs +7 -7
- package/dist/{core-D6dTS6c8.mjs → core-D715tamU.mjs} +2561 -2561
- package/dist/lib/core/index.mjs +1 -1
- package/dist/lib/index.mjs +3 -3
- package/dist/lib/testing.mjs +2 -2
- package/dist/{official-D8xLy36N.mjs → official-P5OKi7QM.mjs} +10 -10
- package/dist/{package-manager-DIyCRHTJ.mjs → package-manager-CySZrSUa.mjs} +190 -190
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { i as __toESM } from "./chunk-BjMGrMj9.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { $ as
|
|
5
|
-
import { a as setupAddons, n as officialAddons, o as createWorkspace, r as applyAddons, t as getAddonDetails } from "./official-
|
|
3
|
+
import { O as dist, T as resolveCommand, a as installOption, b as getPackageJson, c as Option, d as up$1, f as from, g as commonFilePaths, i as installDependencies, k as getSharedFiles, l as program, m as templates, n as addPnpmBuildDependencies, o as packageManagerPrompt, p as create$1, r as getUserAgent, s as Command, t as AGENT_NAMES, v as formatFiles, w as detect, y as getHighlighter } from "./package-manager-CySZrSUa.mjs";
|
|
4
|
+
import { $ as ze, G as J, H as De, J as Ue, K as Ke, O as create$2, Q as ke, U as Fe, W as Ge, Y as We, Z as et, _ as createDefault, a as toFragment, at as parseSvelte, dt as require_picocolors, et as Vu, it as parseScript, k as overrideProperties, lt as walk, o as isVersionUnsupportedBelow, q as T, r as ensureScript, rt as parseJson, x as addDefault } from "./core-D715tamU.mjs";
|
|
5
|
+
import { a as setupAddons, n as officialAddons, o as createWorkspace, r as applyAddons, t as getAddonDetails } from "./official-P5OKi7QM.mjs";
|
|
6
6
|
import fs, { existsSync } from "node:fs";
|
|
7
7
|
import path, { dirname, join } from "node:path";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
+
import { exec, execSync } from "node:child_process";
|
|
9
10
|
import process from "node:process";
|
|
10
11
|
import { promisify } from "node:util";
|
|
11
|
-
import { exec, execSync } from "node:child_process";
|
|
12
12
|
import { createGunzip } from "node:zlib";
|
|
13
13
|
import { pipeline } from "node:stream/promises";
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "sv";
|
|
17
|
-
var version = "0.11.
|
|
17
|
+
var version = "0.11.2";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region lib/addons/_config/community.ts
|
|
@@ -1538,7 +1538,7 @@ function setupPlaygroundProject(url, playground, cwd$1, installDependencies$1) {
|
|
|
1538
1538
|
</PlaygroundLayout>`));
|
|
1539
1539
|
const newContent = generateCode();
|
|
1540
1540
|
fs.writeFileSync(filePath, newContent, "utf-8");
|
|
1541
|
-
const pkgPath = path.join(cwd$1,
|
|
1541
|
+
const pkgPath = path.join(cwd$1, commonFilePaths.packageJson);
|
|
1542
1542
|
const pkgJson = parseJson(fs.readFileSync(pkgPath, "utf-8"));
|
|
1543
1543
|
let updatePackageJson = false;
|
|
1544
1544
|
if (installDependencies$1 && dependencies.size >= 0) {
|
|
@@ -1548,7 +1548,7 @@ function setupPlaygroundProject(url, playground, cwd$1, installDependencies$1) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
let experimentalAsyncNeeded = true;
|
|
1550
1550
|
const addExperimentalAsync = () => {
|
|
1551
|
-
const svelteConfigPath = path.join(cwd$1,
|
|
1551
|
+
const svelteConfigPath = path.join(cwd$1, commonFilePaths.svelteConfig);
|
|
1552
1552
|
const { ast: ast$1, generateCode: generateCode$1 } = parseScript(fs.readFileSync(svelteConfigPath, "utf-8"));
|
|
1553
1553
|
const { value: config } = createDefault(ast$1, { fallback: create$2({}) });
|
|
1554
1554
|
overrideProperties(config, { compilerOptions: { experimental: { async: true } } });
|