sv 1.0.0-next.0 → 1.0.0-next.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 +21 -8
- package/dist/{engine-BrvAeCUj.d.mts → engine-0wnzAQ2W.d.mts} +2 -1
- package/dist/{engine-DlJ4-99M.mjs → engine-BSJyw47Z.mjs} +31 -21
- package/dist/src/index.d.mts +1 -1
- package/dist/src/index.mjs +1 -1
- package/dist/src/testing.d.mts +1 -1
- package/dist/src/testing.mjs +1 -1
- package/dist/templates/addon/package.json +3 -3
- package/package.json +3 -3
package/dist/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as Command, B as name, C as pipe, D as union, E as transform, F as forwardExitCode, G as ge, H as Ce, I as helpConfig, J as we, K as le, L as normalizePosix, O as from, P as errorAndExit, R as runAndValidateVerifications, S as picklist, T as string, U as Ee, V as version, W as R$1, Y as R, _ as array, a as verifyCleanWorkingDirectory, b as optional, c as AGENT_NAMES, d as installDependencies, f as installOption, i as create, k as program, n as prepareSvApi, o as formatFiles, p as packageManagerPrompt, q as vt, r as add, s as createWorkspace, u as detectPackageManager, v as boolean, w as strictObject, x as parse$1, y as literal, z as runCommand } from "./engine-
|
|
2
|
+
import { A as Command, B as name, C as pipe, D as union, E as transform, F as forwardExitCode, G as ge, H as Ce, I as helpConfig, J as we, K as le, L as normalizePosix, O as from, P as errorAndExit, R as runAndValidateVerifications, S as picklist, T as string, U as Ee, V as version, W as R$1, Y as R, _ as array, a as verifyCleanWorkingDirectory, b as optional, c as AGENT_NAMES, d as installDependencies, f as installOption, i as create, k as program, n as prepareSvApi, o as formatFiles, p as packageManagerPrompt, q as vt, r as add, s as createWorkspace, u as detectPackageManager, v as boolean, w as strictObject, x as parse$1, y as literal, z as runCommand } from "./engine-BSJyw47Z.mjs";
|
|
3
3
|
import { Walker, coerceVersion, color, isVersionUnsupportedBelow, js, loadPackageJson, parse, resolveCommandArray, svelteConfig, transforms } from "@sveltejs/sv-utils";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1263,14 +1263,16 @@ const MOVED_EXPORTS = /* @__PURE__ */ new Map([
|
|
|
1263
1263
|
["RemoteQueryUpdate", "$app/server"],
|
|
1264
1264
|
["RemoteResource", "$app/server"],
|
|
1265
1265
|
["RequestedEntry", "$app/server"],
|
|
1266
|
+
["LiveRequestedEntry", "$app/server"],
|
|
1266
1267
|
["RequestedResult", "$app/server"],
|
|
1268
|
+
["QueryRequestedResult", "$app/server"],
|
|
1269
|
+
["LiveQueryRequestedResult", "$app/server"],
|
|
1267
1270
|
["Reroute", "@sveltejs/kit/hooks"],
|
|
1268
1271
|
["ResolveOptions", "@sveltejs/kit/hooks"],
|
|
1269
1272
|
["ServerInit", "@sveltejs/kit/hooks"],
|
|
1270
1273
|
["SubmitFunction", "$app/forms"],
|
|
1271
1274
|
["Transport", "@sveltejs/kit/hooks"],
|
|
1272
1275
|
["Transporter", "@sveltejs/kit/hooks"],
|
|
1273
|
-
["ValidationError", "$app/server"],
|
|
1274
1276
|
["defineParams", "@sveltejs/kit/params"]
|
|
1275
1277
|
]);
|
|
1276
1278
|
var imports_default = defineMigrationTask({
|
|
@@ -1417,6 +1419,7 @@ function migrateComments(comments) {
|
|
|
1417
1419
|
//#endregion
|
|
1418
1420
|
//#region src/migrate/migrations/sveltekit-3/tasks/lib-alias.ts
|
|
1419
1421
|
const LIB_ALIAS = /(?<=['"`])\$lib(\/(.+)['"`]|['"`])/g;
|
|
1422
|
+
const STYLE_TAG = /(<style\b[^>]*>)([\s\S]*?)(<\/style\s*>)/gi;
|
|
1420
1423
|
function libSubpathImports(libDir) {
|
|
1421
1424
|
return {
|
|
1422
1425
|
"#lib": `./${libDir}/index.js`,
|
|
@@ -1436,8 +1439,10 @@ var lib_alias_default = defineMigrationTask({
|
|
|
1436
1439
|
sv.files({
|
|
1437
1440
|
include: `${directory.src}/**/*.{svelte,svelte.ts,svelte.js,ts,js,svx,md}`,
|
|
1438
1441
|
where: (content) => content.includes("$lib")
|
|
1439
|
-
}, (content) => {
|
|
1440
|
-
|
|
1442
|
+
}, (content, file) => {
|
|
1443
|
+
let styleLibPath = path.posix.relative(path.posix.dirname(file.replaceAll("\\", "/")), directory.lib.replaceAll("\\", "/"));
|
|
1444
|
+
if (!styleLibPath.startsWith(".")) styleLibPath = `./${styleLibPath}`;
|
|
1445
|
+
const rewritten = content.replace(STYLE_TAG, (_, open, css, close) => `${open}${css.replace(LIB_ALIAS, (match) => match.replace("$lib", styleLibPath))}${close}`).replace(LIB_ALIAS, (match, _, import_path) => {
|
|
1441
1446
|
match = match.replace("$lib", "#lib");
|
|
1442
1447
|
if (import_path && !import_path.endsWith(".js") && !import_path.endsWith(".ts")) {
|
|
1443
1448
|
for (const ending of [
|
|
@@ -1522,7 +1527,7 @@ var params_default = defineMigrationTask({
|
|
|
1522
1527
|
const content = parts.join("\n");
|
|
1523
1528
|
sv.file(target, () => content);
|
|
1524
1529
|
if (foreignEntries.length > 0) return;
|
|
1525
|
-
for (const file of matcherFiles)
|
|
1530
|
+
for (const file of matcherFiles) sv.removeFile(file);
|
|
1526
1531
|
if (fs.readdirSync(absoluteParamsDirectory).length === 0) fs.rmdirSync(absoluteParamsDirectory);
|
|
1527
1532
|
}
|
|
1528
1533
|
});
|
|
@@ -1910,6 +1915,7 @@ function withoutLeadingSlash(expression) {
|
|
|
1910
1915
|
function removeStaticLeadingSlash(expression) {
|
|
1911
1916
|
if (expression.type === "Literal" && typeof expression.value === "string") {
|
|
1912
1917
|
if (!expression.value.startsWith("/")) return false;
|
|
1918
|
+
if (expression.value === "/") return false;
|
|
1913
1919
|
expression.value = expression.value.slice(1);
|
|
1914
1920
|
expression.raw = void 0;
|
|
1915
1921
|
return true;
|
|
@@ -1917,6 +1923,7 @@ function removeStaticLeadingSlash(expression) {
|
|
|
1917
1923
|
if (expression.type === "TemplateLiteral") {
|
|
1918
1924
|
const quasi = expression.quasis[0];
|
|
1919
1925
|
if (!quasi?.value.raw.startsWith("/")) return false;
|
|
1926
|
+
if (quasi.value.raw === "/") return false;
|
|
1920
1927
|
quasi.value.raw = quasi.value.raw.slice(1);
|
|
1921
1928
|
if (quasi.value.cooked !== void 0 && quasi.value.cooked !== null) quasi.value.cooked = quasi.value.cooked.slice(1);
|
|
1922
1929
|
return true;
|
|
@@ -2040,7 +2047,7 @@ function gotoOptions(replace, state) {
|
|
|
2040
2047
|
return js.object.create({
|
|
2041
2048
|
shallow: js.common.createLiteral(true),
|
|
2042
2049
|
replace: replace ? js.common.createLiteral(true) : void 0,
|
|
2043
|
-
state
|
|
2050
|
+
state: state?.type === "ObjectExpression" && state.properties.length === 0 ? void 0 : state
|
|
2044
2051
|
});
|
|
2045
2052
|
}
|
|
2046
2053
|
function migrateNavigationHook(call) {
|
|
@@ -2135,11 +2142,13 @@ var svelte_config_default = defineMigrationTask({
|
|
|
2135
2142
|
if (configSource.kind === "vite") return;
|
|
2136
2143
|
const originalConfigObject = svelteConfig.read(cwd);
|
|
2137
2144
|
if (!originalConfigObject) return;
|
|
2138
|
-
|
|
2145
|
+
sv.removeFile(configSource.path);
|
|
2139
2146
|
svelteConfig.edit({
|
|
2140
2147
|
sv,
|
|
2141
2148
|
cwd
|
|
2142
2149
|
}, ({ ast, override, comments }) => {
|
|
2150
|
+
const existingAttachments = collectComments(ast, comments);
|
|
2151
|
+
comments.remove(() => true);
|
|
2143
2152
|
const configDeclaration = originalConfigObject.ast.body.find((node) => node.type === "VariableDeclaration" && node.declarations.some((d) => d.init === originalConfigObject.config));
|
|
2144
2153
|
const originalImports = [];
|
|
2145
2154
|
const originalStatements = [];
|
|
@@ -2224,6 +2233,7 @@ var svelte_config_default = defineMigrationTask({
|
|
|
2224
2233
|
};
|
|
2225
2234
|
let rootConfig;
|
|
2226
2235
|
forEachNode(ast, (node) => {
|
|
2236
|
+
apply(node, existingAttachments.get(node));
|
|
2227
2237
|
apply(node, attachments.get(node));
|
|
2228
2238
|
if (node.type === "CallExpression" && node.callee.type === "Identifier" && node.callee.name === "sveltekit" && node.arguments[0]?.type === "ObjectExpression") rootConfig = node.arguments[0];
|
|
2229
2239
|
});
|
|
@@ -2705,7 +2715,10 @@ async function applyTasks(options, tasks, legacyMigration) {
|
|
|
2705
2715
|
}
|
|
2706
2716
|
}
|
|
2707
2717
|
if (!legacyMigration) stop("All tasks applied successfully!");
|
|
2708
|
-
if (allUnmodifiedFiles.size > 0)
|
|
2718
|
+
if (allUnmodifiedFiles.size > 0) {
|
|
2719
|
+
const skippedFiles = Array.from(allUnmodifiedFiles).map((file) => `- ${color.path(file)}`).join("\n");
|
|
2720
|
+
Ce(`Changes to these files were skipped because they did not\nmatch the ${color.command("--files")} filter:\n${skippedFiles}`, color.warning("Skipped changes"), { format: (line) => line });
|
|
2721
|
+
}
|
|
2709
2722
|
return allModifiedFiles;
|
|
2710
2723
|
}
|
|
2711
2724
|
//#endregion
|
|
@@ -122,7 +122,8 @@ type SvApi = {
|
|
|
122
122
|
*
|
|
123
123
|
* Return `false` from the callback to abort - the original content is returned unchanged.
|
|
124
124
|
*/
|
|
125
|
-
file: (path: string, edit: FileEdit) => void;
|
|
125
|
+
file: (path: string, edit: FileEdit) => void; /** Remove a file from the workspace. Respects the migration file filter. */
|
|
126
|
+
removeFile: (path: string) => void;
|
|
126
127
|
/**
|
|
127
128
|
* Edits matching files in the workspace.
|
|
128
129
|
* The `include` and `exclude` patterns are glob patterns relative to the workspace root.
|
|
@@ -1339,7 +1339,7 @@ ${i ? styleText("cyan", x$1) : ""}
|
|
|
1339
1339
|
//#endregion
|
|
1340
1340
|
//#region package.json
|
|
1341
1341
|
var name = "sv";
|
|
1342
|
-
var version = "1.0.0-next.
|
|
1342
|
+
var version = "1.0.0-next.2";
|
|
1343
1343
|
//#endregion
|
|
1344
1344
|
//#region src/core/errors.ts
|
|
1345
1345
|
var UnsupportedError = class extends Error {
|
|
@@ -6224,7 +6224,7 @@ var better_auth_default = defineAddon({
|
|
|
6224
6224
|
}
|
|
6225
6225
|
sv.file(`${directory.lib}/server/auth.${language}`, transforms.script(({ ast, comments, js }) => {
|
|
6226
6226
|
js.imports.addNamed(ast, {
|
|
6227
|
-
from: `${lib}/server/db`,
|
|
6227
|
+
from: `${lib}/server/db/index.${language}`,
|
|
6228
6228
|
imports: [d1 ? "getDb" : "db"]
|
|
6229
6229
|
});
|
|
6230
6230
|
js.imports.addNamed(ast, {
|
|
@@ -6320,7 +6320,7 @@ var better_auth_default = defineAddon({
|
|
|
6320
6320
|
sv.file("src/app.d.ts", transforms.script(({ ast, comments, js }) => {
|
|
6321
6321
|
if (d1) js.imports.addNamed(ast, {
|
|
6322
6322
|
imports: ["createAuth"],
|
|
6323
|
-
from: `${lib}/server/auth`
|
|
6323
|
+
from: `${lib}/server/auth.${language}`
|
|
6324
6324
|
});
|
|
6325
6325
|
js.imports.addNamed(ast, {
|
|
6326
6326
|
imports: ["User", "Session"],
|
|
@@ -6344,7 +6344,7 @@ var better_auth_default = defineAddon({
|
|
|
6344
6344
|
});
|
|
6345
6345
|
js.imports.addNamed(ast, {
|
|
6346
6346
|
imports: [d1 ? "createAuth" : "auth"],
|
|
6347
|
-
from: `${lib}/server/auth`
|
|
6347
|
+
from: `${lib}/server/auth.${language}`
|
|
6348
6348
|
});
|
|
6349
6349
|
env.importEnv(ast, js, ["building"]);
|
|
6350
6350
|
const handleContent = dedent`
|
|
@@ -6452,7 +6452,7 @@ var better_auth_default = defineAddon({
|
|
|
6452
6452
|
import { fail, redirect } from '@sveltejs/kit';
|
|
6453
6453
|
${ts("import type { Actions } from './$types';")}
|
|
6454
6454
|
${ts("import type { PageServerLoad } from './$types';")}
|
|
6455
|
-
${!d1 ? `import { auth } from '${lib}/server/auth';` : ""}
|
|
6455
|
+
${!d1 ? `import { auth } from '${lib}/server/auth.${language}';` : ""}
|
|
6456
6456
|
${needsAPIError ? "import { APIError } from 'better-auth/api';" : ""}
|
|
6457
6457
|
|
|
6458
6458
|
export const load${ts(": PageServerLoad")} = (event) => {
|
|
@@ -6521,7 +6521,7 @@ var better_auth_default = defineAddon({
|
|
|
6521
6521
|
import { redirect } from '@sveltejs/kit';
|
|
6522
6522
|
${ts("import type { Actions } from './$types';")}
|
|
6523
6523
|
${ts("import type { PageServerLoad } from './$types';")}
|
|
6524
|
-
${!d1 ? `import { auth } from '${lib}/server/auth';` : ""}
|
|
6524
|
+
${!d1 ? `import { auth } from '${lib}/server/auth.${language}';` : ""}
|
|
6525
6525
|
|
|
6526
6526
|
export const load${ts(": PageServerLoad")} = (event) => {
|
|
6527
6527
|
if (!event.locals.user) {
|
|
@@ -7369,7 +7369,7 @@ var paraglide_default = defineAddon({
|
|
|
7369
7369
|
}));
|
|
7370
7370
|
sv.file(`src/hooks.${language}`, transforms.script(({ ast, comments, js }) => {
|
|
7371
7371
|
js.imports.addNamed(ast, {
|
|
7372
|
-
from: `${lib}/paraglide/runtime`,
|
|
7372
|
+
from: `${lib}/paraglide/runtime.js`,
|
|
7373
7373
|
imports: ["deLocalizeUrl"]
|
|
7374
7374
|
});
|
|
7375
7375
|
const expression = js.common.parseExpression("(request) => deLocalizeUrl(request.url).pathname");
|
|
@@ -7384,19 +7384,19 @@ var paraglide_default = defineAddon({
|
|
|
7384
7384
|
});
|
|
7385
7385
|
if (existingExport.declaration !== rerouteIdentifier) R$1.warn("Adding the reroute hook automatically failed. Add it manually");
|
|
7386
7386
|
if (language === "ts") js.imports.addNamed(ast, {
|
|
7387
|
-
from: "@sveltejs/kit",
|
|
7387
|
+
from: "@sveltejs/kit/hooks",
|
|
7388
7388
|
imports: ["Reroute"],
|
|
7389
7389
|
isType: true
|
|
7390
7390
|
});
|
|
7391
|
-
else js.common.addJsDocTypeComment(existingExport, comments, { type: "import('@sveltejs/kit').Reroute" });
|
|
7391
|
+
else js.common.addJsDocTypeComment(existingExport, comments, { type: "import('@sveltejs/kit/hooks').Reroute" });
|
|
7392
7392
|
}));
|
|
7393
7393
|
sv.file(`src/hooks.server.${language}`, transforms.script(({ ast, comments, js }) => {
|
|
7394
7394
|
js.imports.addNamed(ast, {
|
|
7395
|
-
from: `${lib}/paraglide/server`,
|
|
7395
|
+
from: `${lib}/paraglide/server.js`,
|
|
7396
7396
|
imports: ["paraglideMiddleware"]
|
|
7397
7397
|
});
|
|
7398
7398
|
js.imports.addNamed(ast, {
|
|
7399
|
-
from: `${lib}/paraglide/runtime`,
|
|
7399
|
+
from: `${lib}/paraglide/runtime.js`,
|
|
7400
7400
|
imports: ["getTextDirection"]
|
|
7401
7401
|
});
|
|
7402
7402
|
js.kit.addHooksHandle(ast, {
|
|
@@ -7435,7 +7435,7 @@ var paraglide_default = defineAddon({
|
|
|
7435
7435
|
sv.file(`${directory.kitRoutes}/+layout.svelte`, transforms.svelteScript({ language }, ({ ast, svelte, js }) => {
|
|
7436
7436
|
js.imports.addNamed(ast.instance.content, {
|
|
7437
7437
|
imports: ["locales", "localizeHref"],
|
|
7438
|
-
from: `${lib}/paraglide/runtime`
|
|
7438
|
+
from: `${lib}/paraglide/runtime.js`
|
|
7439
7439
|
});
|
|
7440
7440
|
js.imports.addNamed(ast.instance.content, {
|
|
7441
7441
|
imports: ["page"],
|
|
@@ -7466,7 +7466,7 @@ var paraglide_default = defineAddon({
|
|
|
7466
7466
|
});
|
|
7467
7467
|
js.imports.addNamed(ast.instance.content, {
|
|
7468
7468
|
imports: { setLocale: "setLocale" },
|
|
7469
|
-
from: `${lib}/paraglide/runtime`
|
|
7469
|
+
from: `${lib}/paraglide/runtime.js`
|
|
7470
7470
|
});
|
|
7471
7471
|
let templateCode = "<h1>{m.hello_world({ name: 'SvelteKit User' })}</h1>";
|
|
7472
7472
|
const { validLanguageTags } = parseLanguageTagInput(options.languageTags);
|
|
@@ -7652,32 +7652,32 @@ const adapters = [
|
|
|
7652
7652
|
{
|
|
7653
7653
|
id: "auto",
|
|
7654
7654
|
package: "@sveltejs/adapter-auto",
|
|
7655
|
-
version: "^
|
|
7655
|
+
version: "^8.0.0-next.3"
|
|
7656
7656
|
},
|
|
7657
7657
|
{
|
|
7658
7658
|
id: "node",
|
|
7659
7659
|
package: "@sveltejs/adapter-node",
|
|
7660
|
-
version: "^
|
|
7660
|
+
version: "^6.0.0-next.10"
|
|
7661
7661
|
},
|
|
7662
7662
|
{
|
|
7663
7663
|
id: "static",
|
|
7664
7664
|
package: "@sveltejs/adapter-static",
|
|
7665
|
-
version: "^
|
|
7665
|
+
version: "^4.0.0-next.4"
|
|
7666
7666
|
},
|
|
7667
7667
|
{
|
|
7668
7668
|
id: "vercel",
|
|
7669
7669
|
package: "@sveltejs/adapter-vercel",
|
|
7670
|
-
version: "^
|
|
7670
|
+
version: "^7.0.0-next.6"
|
|
7671
7671
|
},
|
|
7672
7672
|
{
|
|
7673
7673
|
id: "cloudflare",
|
|
7674
7674
|
package: "@sveltejs/adapter-cloudflare",
|
|
7675
|
-
version: "^
|
|
7675
|
+
version: "^8.0.0-next.6"
|
|
7676
7676
|
},
|
|
7677
7677
|
{
|
|
7678
7678
|
id: "netlify",
|
|
7679
7679
|
package: "@sveltejs/adapter-netlify",
|
|
7680
|
-
version: "^
|
|
7680
|
+
version: "^7.0.0-next.8"
|
|
7681
7681
|
}
|
|
7682
7682
|
];
|
|
7683
7683
|
var sveltekit_adapter_default = defineAddon({
|
|
@@ -10789,7 +10789,7 @@ function editFile(file, edit, workspace, modifiedFiles, unmodifiedFiles, options
|
|
|
10789
10789
|
if (include === void 0 ? false : !include(content)) return;
|
|
10790
10790
|
const editedContent = edit(content);
|
|
10791
10791
|
if (editedContent === "" || editedContent === false) return;
|
|
10792
|
-
if (
|
|
10792
|
+
if (!matchesFilesFilter(file, options)) {
|
|
10793
10793
|
unmodifiedFiles.add(file);
|
|
10794
10794
|
return;
|
|
10795
10795
|
}
|
|
@@ -10801,6 +10801,9 @@ function editFile(file, edit, workspace, modifiedFiles, unmodifiedFiles, options
|
|
|
10801
10801
|
throw e;
|
|
10802
10802
|
}
|
|
10803
10803
|
}
|
|
10804
|
+
function matchesFilesFilter(file, options) {
|
|
10805
|
+
return !options.filesFilter || path.matchesGlob(file, options.filesFilter);
|
|
10806
|
+
}
|
|
10804
10807
|
function prepareSvApi(workspace, options = {
|
|
10805
10808
|
filesFilter: void 0,
|
|
10806
10809
|
executeOutputPrefix: void 0,
|
|
@@ -10814,6 +10817,13 @@ function prepareSvApi(workspace, options = {
|
|
|
10814
10817
|
file: (path, edit) => {
|
|
10815
10818
|
editFile(path, edit, workspace, modifiedFiles, unmodifiedFiles, options);
|
|
10816
10819
|
},
|
|
10820
|
+
removeFile: (file) => {
|
|
10821
|
+
if (!matchesFilesFilter(file, options)) {
|
|
10822
|
+
unmodifiedFiles.add(file);
|
|
10823
|
+
return;
|
|
10824
|
+
}
|
|
10825
|
+
fs.unlinkSync(path.resolve(workspace.cwd, file));
|
|
10826
|
+
},
|
|
10817
10827
|
files: (opts, edit) => {
|
|
10818
10828
|
const { include, exclude } = opts;
|
|
10819
10829
|
const globbedFiles = fs.globSync(include, {
|
|
@@ -10830,7 +10840,7 @@ function prepareSvApi(workspace, options = {
|
|
|
10830
10840
|
]
|
|
10831
10841
|
});
|
|
10832
10842
|
for (const file of globbedFiles) {
|
|
10833
|
-
if (
|
|
10843
|
+
if (!matchesFilesFilter(file, options)) continue;
|
|
10834
10844
|
const singleFileEdit = (content) => edit(content, file);
|
|
10835
10845
|
editFile(file, singleFileEdit, workspace, modifiedFiles, unmodifiedFiles, options, opts.where);
|
|
10836
10846
|
}
|
package/dist/src/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as StringQuestion, C as BooleanQuestion, D as OptionValues, E as OptionDefinition, O as Question, S as BaseQuestion, T as NumberQuestion, _ as SvApi, a as Addon, b as Workspace, c as AddonReference, d as ConditionDefinition, f as ConfiguredAddon, g as SetupResult, h as PreparedAddon, i as add, j as officialAddons, k as SelectQuestion, l as AddonResult, m as OptionBuilder, n as InstallOptions, o as AddonDefinition, p as LoadedAddon, r as OptionMap, s as AddonInput, t as AddonMap, u as AddonSource, v as defineAddon, w as MultiSelectQuestion, x as WorkspaceOptions, y as defineAddonOptions } from "../engine-
|
|
1
|
+
import { A as StringQuestion, C as BooleanQuestion, D as OptionValues, E as OptionDefinition, O as Question, S as BaseQuestion, T as NumberQuestion, _ as SvApi, a as Addon, b as Workspace, c as AddonReference, d as ConditionDefinition, f as ConfiguredAddon, g as SetupResult, h as PreparedAddon, i as add, j as officialAddons, k as SelectQuestion, l as AddonResult, m as OptionBuilder, n as InstallOptions, o as AddonDefinition, p as LoadedAddon, r as OptionMap, s as AddonInput, t as AddonMap, u as AddonSource, v as defineAddon, w as MultiSelectQuestion, x as WorkspaceOptions, y as defineAddonOptions } from "../engine-0wnzAQ2W.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/create/index.d.ts
|
|
4
4
|
type TemplateType = (typeof templateTypes)[number];
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { N as create, g as defineAddonOptions, h as defineAddon, m as officialAddons, t as add } from "../engine-
|
|
1
|
+
import { N as create, g as defineAddonOptions, h as defineAddon, m as officialAddons, t as add } from "../engine-BSJyw47Z.mjs";
|
|
2
2
|
export { add, create, defineAddon, defineAddonOptions, officialAddons };
|
package/dist/src/testing.d.mts
CHANGED
package/dist/src/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as z, N as create, Q as __toESM, X as __commonJSMin, Z as __require, j as R, l as addPnpmAllowBuilds, t as add } from "../engine-
|
|
1
|
+
import { M as z, N as create, Q as __toESM, X as __commonJSMin, Z as __require, j as R, l as addPnpmAllowBuilds, t as add } from "../engine-BSJyw47Z.mjs";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import V from "node:process";
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"sv": "^1.0.0-next.
|
|
25
|
+
"sv": "^1.0.0-next.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"sv": "^1.0.0-next.
|
|
29
|
-
"@sveltejs/sv-utils": "^1.0.0-next.
|
|
28
|
+
"sv": "^1.0.0-next.2",
|
|
29
|
+
"@sveltejs/sv-utils": "^1.0.0-next.2",
|
|
30
30
|
"@playwright/test": "^1.60.0",
|
|
31
31
|
"@types/node": "^25.9.1",
|
|
32
32
|
"tsdown": "^0.22.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sv",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A command line interface (CLI) for creating and maintaining Svelte applications",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@sveltejs/sv-utils": "1.0.0-next.
|
|
28
|
+
"@sveltejs/sv-utils": "1.0.0-next.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@clack/prompts": "1.5.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"modern-tar": "^0.7.7",
|
|
39
39
|
"ps-tree": "^1.2.0",
|
|
40
40
|
"sucrase": "^3.35.1",
|
|
41
|
-
"svelte": "^5.56.
|
|
41
|
+
"svelte": "^5.56.9",
|
|
42
42
|
"tiny-glob": "^0.2.9",
|
|
43
43
|
"tinyexec": "^1.2.4",
|
|
44
44
|
"valibot": "^1.4.1"
|