sv 1.0.0 → 1.0.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 { T as getSharedFiles, _ as defineAddon, dt as R, v as defineAddonOptions } from "./engine-
|
|
1
|
+
import { T as getSharedFiles, _ as defineAddon, dt as R, v as defineAddonOptions } from "./engine-LhRAh1ZA.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { Walker, coerceVersion, color, createPrinter, dedent, defineEnv, fileExists, isKit3, loadPackageJson, pnpm, resolveCommandArray, resolveLibPrefix, sanitizeName, svelteConfig, transforms } from "@sveltejs/sv-utils";
|
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as pipe, A as filePaths, B as updateAgent, C as templates, D as buildAndLogArgs, E as PackageJSONSchema, F as isNodeError, G as version, H as updateReadme, I as normalizePosix, J as literal, K as array, L as parseAddonOptions, M as getHelpSections, N as getPadding, O as cliOptions, P as helpConfig, Q as picklist, R as runAndValidateVerifications, S as create$1, T as getSharedFiles, U as UnsupportedError, V as updateLibraryBuild, W as name, X as optional, Y as nonEmpty, Z as parse$1, _t as we, a as setupAddons, at as union, b as exec, c as AGENT_NAMES, ct as Option, d as installDependencies, dt as R, et as record, f as installOption, ft as Re, g as createLoadedAddon, gt as vt, h as from, ht as pe, i as prepareSvApi, it as transform, j as forwardExitCode, k as errorAndExit, l as addAllowBuildsIfPnpm, lt as Ce, m as up$1, mt as le, n as applyAddons, nt as strictObject, o as createWorkspace, ot as program, p as packageManagerPrompt, pt as ge, q as boolean, r as orderAddons, rt as string, s as findWorkspaceRoot, st as Command, tt as safeParse, u as detectPackageManager, ut as Ee, vt as R$1, w as dist, x as execSync, y as getErrorHint, z as runCommand } from "./engine-
|
|
3
|
-
import { n as officialAddons$1, t as getAddonDetails } from "./addons-
|
|
2
|
+
import { $ as pipe, A as filePaths, B as updateAgent, C as templates, D as buildAndLogArgs, E as PackageJSONSchema, F as isNodeError, G as version, H as updateReadme, I as normalizePosix, J as literal, K as array, L as parseAddonOptions, M as getHelpSections, N as getPadding, O as cliOptions, P as helpConfig, Q as picklist, R as runAndValidateVerifications, S as create$1, T as getSharedFiles, U as UnsupportedError, V as updateLibraryBuild, W as name, X as optional, Y as nonEmpty, Z as parse$1, _t as we, a as setupAddons, at as union, b as exec, c as AGENT_NAMES, ct as Option, d as installDependencies, dt as R, et as record, f as installOption, ft as Re, g as createLoadedAddon, gt as vt, h as from, ht as pe, i as prepareSvApi, it as transform, j as forwardExitCode, k as errorAndExit, l as addAllowBuildsIfPnpm, lt as Ce, m as up$1, mt as le, n as applyAddons, nt as strictObject, o as createWorkspace, ot as program, p as packageManagerPrompt, pt as ge, q as boolean, r as orderAddons, rt as string, s as findWorkspaceRoot, st as Command, tt as safeParse, u as detectPackageManager, ut as Ee, vt as R$1, w as dist, x as execSync, y as getErrorHint, z as runCommand } from "./engine-LhRAh1ZA.mjs";
|
|
3
|
+
import { n as officialAddons$1, t as getAddonDetails } from "./addons-BvT-iII-.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
@@ -5020,12 +5020,7 @@ function safeParse(schema, input, config$1) {
|
|
|
5020
5020
|
//#endregion
|
|
5021
5021
|
//#region package.json
|
|
5022
5022
|
var name = "sv";
|
|
5023
|
-
var version = "1.0.
|
|
5024
|
-
var engines = { "runtime": {
|
|
5025
|
-
"name": "node",
|
|
5026
|
-
"version": "^22.18.0",
|
|
5027
|
-
"onFail": "download"
|
|
5028
|
-
} };
|
|
5023
|
+
var version = "1.0.1";
|
|
5029
5024
|
//#endregion
|
|
5030
5025
|
//#region src/core/errors.ts
|
|
5031
5026
|
var UnsupportedError = class extends Error {
|
|
@@ -5149,7 +5144,7 @@ async function runCommand(action) {
|
|
|
5149
5144
|
try {
|
|
5150
5145
|
console.log(color.hidden("HINT: Run \"sv --help\" to get the full list of commands, add-ons, and examples to one-shot and skip interactive prompts."));
|
|
5151
5146
|
ye(`Welcome to the Svelte CLI! ${color.optional(`(v${version})`)}`);
|
|
5152
|
-
const minimumVersion =
|
|
5147
|
+
const minimumVersion = "22.17.0";
|
|
5153
5148
|
if (isVersionUnsupportedBelow(V.versions.node, minimumVersion)) R.warn(`You are using Node.js ${color.error(V.versions.node)}, please upgrade to Node.js ${color.success(minimumVersion)} or higher.`);
|
|
5154
5149
|
await action();
|
|
5155
5150
|
fe("You're all set!");
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as create, _ as defineAddon, t as add, v as defineAddonOptions } from "../engine-
|
|
2
|
-
import { n as officialAddons } from "../addons-
|
|
1
|
+
import { S as create, _ as defineAddon, t as add, v as defineAddonOptions } from "../engine-LhRAh1ZA.mjs";
|
|
2
|
+
import { n as officialAddons } from "../addons-BvT-iII-.mjs";
|
|
3
3
|
export { add, create, defineAddon, defineAddonOptions, officialAddons };
|
package/dist/src/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as create, b as exec, bt as __require, l as addAllowBuildsIfPnpm, t as add, x as execSync, xt as __toESM, yt as __commonJSMin } from "../engine-
|
|
1
|
+
import { S as create, b as exec, bt as __require, l as addAllowBuildsIfPnpm, t as add, x as execSync, xt as __toESM, yt as __commonJSMin } from "../engine-LhRAh1ZA.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": "^1.0.
|
|
25
|
+
"sv": "^1.0.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"sv": "^1.0.
|
|
28
|
+
"sv": "^1.0.1",
|
|
29
29
|
"@sveltejs/sv-utils": "^1.0.0",
|
|
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": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A command line interface (CLI) for creating and maintaining Svelte applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create",
|
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sveltejs/sv-utils": "1.0.0"
|
|
38
|
-
"node": "runtime:^22.18.0"
|
|
37
|
+
"@sveltejs/sv-utils": "1.0.0"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@clack/prompts": "1.5.0",
|
|
@@ -52,13 +51,6 @@
|
|
|
52
51
|
"tinyexec": "^1.2.4",
|
|
53
52
|
"valibot": "^1.4.1"
|
|
54
53
|
},
|
|
55
|
-
"engines": {
|
|
56
|
-
"runtime": {
|
|
57
|
-
"name": "node",
|
|
58
|
-
"version": "^22.18.0",
|
|
59
|
-
"onFail": "download"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
54
|
"scripts": {
|
|
63
55
|
"check": "tsgo",
|
|
64
56
|
"update-kit-template-railway": "./src/create/scripts/update-kit-template-railway.sh",
|