sv 0.8.16 → 0.8.18
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 { Element, T, Tag, __commonJS, __export, __toESM, __toESM$1, be, detect, esm_exports, getUserAgent, parseCss$1, parseHtml, parseHtml$1, parseJson$1, parseScript, parseScript$1, parseSvelte, require_picocolors, require_picocolors$1, resolveCommand, serializeScript, stripAst, up, walk, walk_exports } from "./package-manager-DO5R9a6p.js";
|
|
1
|
+
import { Element, T, Tag, __commonJS, __export, __toESM, __toESM$1, be, detect, esm_exports, getUserAgent, parseCss$1, parseHtml, parseHtml$1, parseJson$1, parseScript, parseScript$1, parseSvelte, require_picocolors as require_picocolors$1, require_picocolors$1 as require_picocolors, resolveCommand, serializeScript, stripAst, up, walk, walk_exports } from "./package-manager-DO5R9a6p.js";
|
|
2
2
|
import fs, { existsSync, lstatSync, readdirSync } from "node:fs";
|
|
3
3
|
import path, { dirname, join } from "node:path";
|
|
4
4
|
import process$1, { stdin, stdout } from "node:process";
|
|
@@ -819,7 +819,7 @@ function isFunctionDeclaration(node, funcName) {
|
|
|
819
819
|
|
|
820
820
|
//#endregion
|
|
821
821
|
//#region packages/cli/commands/add/utils.ts
|
|
822
|
-
var import_picocolors$5 = __toESM$1(require_picocolors
|
|
822
|
+
var import_picocolors$5 = __toESM$1(require_picocolors(), 1);
|
|
823
823
|
function getPackageJson(cwd) {
|
|
824
824
|
const packageText = readFile(cwd, commonFilePaths.packageJson);
|
|
825
825
|
if (!packageText) {
|
|
@@ -990,7 +990,7 @@ function parseKitOptions(cwd) {
|
|
|
990
990
|
|
|
991
991
|
//#endregion
|
|
992
992
|
//#region packages/cli/lib/install.ts
|
|
993
|
-
var import_picocolors$4 = __toESM$1(require_picocolors
|
|
993
|
+
var import_picocolors$4 = __toESM$1(require_picocolors(), 1);
|
|
994
994
|
async function installAddon({ addons, cwd, options: options$6, packageManager = "npm" }) {
|
|
995
995
|
const workspace = await createWorkspace({
|
|
996
996
|
cwd,
|
|
@@ -1184,7 +1184,7 @@ else if (y > 0) ret += `${CSI}${y}B`;
|
|
|
1184
1184
|
};
|
|
1185
1185
|
} });
|
|
1186
1186
|
var import_src$1 = __toESM(require_src(), 1);
|
|
1187
|
-
var import_picocolors$3 = __toESM(require_picocolors(), 1);
|
|
1187
|
+
var import_picocolors$3 = __toESM(require_picocolors$1(), 1);
|
|
1188
1188
|
function hu({ onlyFirst: e$1 = !1 } = {}) {
|
|
1189
1189
|
const t = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
1190
1190
|
return new RegExp(t, e$1 ? void 0 : "g");
|
|
@@ -1919,8 +1919,8 @@ B$1 = new WeakMap(), k$1 = new WeakMap(), I = new WeakMap(), v$1 = new WeakMap()
|
|
|
1919
1919
|
e$1 ? this.filteredOptions = D$1.filter((t) => x$1(this, I).call(this, e$1, t)) : this.filteredOptions = [...D$1], m(this, B$1, FD(this.focusedValue, this.filteredOptions)), this.focusedValue = this.filteredOptions[x$1(this, B$1)]?.value, this.multiple || (this.focusedValue !== void 0 ? this.toggleSelected(this.focusedValue) : this.deselectAll());
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
|
-
var import_picocolors$1 = __toESM(require_picocolors(), 1);
|
|
1923
|
-
var import_picocolors$2 = __toESM(require_picocolors(), 1);
|
|
1922
|
+
var import_picocolors$1 = __toESM(require_picocolors$1(), 1);
|
|
1923
|
+
var import_picocolors$2 = __toESM(require_picocolors$1(), 1);
|
|
1924
1924
|
var import_src = __toESM(require_src(), 1);
|
|
1925
1925
|
function Pe() {
|
|
1926
1926
|
return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -2593,7 +2593,7 @@ function createPrinter(...conditions) {
|
|
|
2593
2593
|
});
|
|
2594
2594
|
return printers;
|
|
2595
2595
|
}
|
|
2596
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
2596
|
+
var import_picocolors = __toESM(require_picocolors$1(), 1);
|
|
2597
2597
|
var colors = import_picocolors.default;
|
|
2598
2598
|
|
|
2599
2599
|
//#endregion
|
|
@@ -2780,7 +2780,8 @@ var drizzle_default = defineAddon({
|
|
|
2780
2780
|
shortDescription: "database orm",
|
|
2781
2781
|
homepage: "https://orm.drizzle.team",
|
|
2782
2782
|
options: options$5,
|
|
2783
|
-
setup: ({ kit, unsupported, cwd, typescript }) => {
|
|
2783
|
+
setup: ({ kit, unsupported, runsAfter, cwd, typescript }) => {
|
|
2784
|
+
runsAfter("prettier");
|
|
2784
2785
|
const ext = typescript ? "ts" : "js";
|
|
2785
2786
|
if (!kit) return unsupported("Requires SvelteKit");
|
|
2786
2787
|
const baseDBPath = path.resolve(kit.libDirectory, "server", "db");
|
|
@@ -2791,7 +2792,7 @@ var drizzle_default = defineAddon({
|
|
|
2791
2792
|
};
|
|
2792
2793
|
for (const [fileType, filePath] of Object.entries(paths)) if (fs.existsSync(filePath)) unsupported(`Preexisting ${fileType} file at '${filePath}'`);
|
|
2793
2794
|
},
|
|
2794
|
-
run: ({ sv, typescript, options: options$6, kit }) => {
|
|
2795
|
+
run: ({ sv, typescript, options: options$6, kit, dependencyVersion }) => {
|
|
2795
2796
|
const ext = typescript ? "ts" : "js";
|
|
2796
2797
|
sv.dependency("drizzle-orm", "^0.40.0");
|
|
2797
2798
|
sv.devDependency("drizzle-kit", "^0.30.2");
|
|
@@ -2854,6 +2855,11 @@ var drizzle_default = defineAddon({
|
|
|
2854
2855
|
scripts["db:studio"] ??= "drizzle-kit studio";
|
|
2855
2856
|
return generateCode();
|
|
2856
2857
|
});
|
|
2858
|
+
const hasPrettier = Boolean(dependencyVersion("prettier"));
|
|
2859
|
+
if (hasPrettier) sv.file(".prettierignore", (content) => {
|
|
2860
|
+
if (!content.includes(`/drizzle/`)) return content.trimEnd() + "\n/drizzle/";
|
|
2861
|
+
return content;
|
|
2862
|
+
});
|
|
2857
2863
|
if (options$6.database === "sqlite") sv.file(".gitignore", (content) => {
|
|
2858
2864
|
if (content.length === 0) return content;
|
|
2859
2865
|
if (!content.includes("\n*.db")) content = content.trimEnd() + "\n\n# SQLite\n*.db";
|
|
@@ -5214,7 +5220,7 @@ var prettier_default = defineAddon({
|
|
|
5214
5220
|
bun.lockb
|
|
5215
5221
|
|
|
5216
5222
|
# Miscellaneous
|
|
5217
|
-
static/
|
|
5223
|
+
/static/
|
|
5218
5224
|
`;
|
|
5219
5225
|
});
|
|
5220
5226
|
sv.file(".prettierrc", (content) => {
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { AGENT_NAMES, Command, De, Fe, Ge, J, Ke, Option, T, Ue, Vu, We, __toESM$1 as __toESM, addPnpmBuildDependencies, create, detect, et, from, getUserAgent, installDependencies, installOption, ke, packageManagerPrompt, program, require_picocolors$1 as require_picocolors, resolveCommand, templates, up, ze } from "./package-manager-DO5R9a6p.js";
|
|
3
|
-
import { applyAddons, communityAddonIds, createWorkspace, formatFiles, getAddonDetails, getCommunityAddon, getHighlighter, officialAddons, setupAddons } from "./addons-
|
|
3
|
+
import { applyAddons, communityAddonIds, createWorkspace, formatFiles, getAddonDetails, getCommunityAddon, getHighlighter, officialAddons, setupAddons } from "./addons-Br9tic5t.js";
|
|
4
4
|
import fs, { existsSync } from "node:fs";
|
|
5
5
|
import path, { dirname, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -12,7 +12,7 @@ import { pipeline } from "node:stream/promises";
|
|
|
12
12
|
|
|
13
13
|
//#region packages/cli/package.json
|
|
14
14
|
var name = "sv";
|
|
15
|
-
var version = "0.8.
|
|
15
|
+
var version = "0.8.18";
|
|
16
16
|
var type = "module";
|
|
17
17
|
var description = "A CLI for creating and updating SvelteKit projects";
|
|
18
18
|
var license = "MIT";
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"@fontsource/fira-mono": "^5.0.0",
|
|
14
14
|
"@neoconfetti/svelte": "^2.0.0",
|
|
15
15
|
"@sveltejs/adapter-auto": "^6.0.0",
|
|
16
|
-
"@sveltejs/kit": "^2.
|
|
17
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
16
|
+
"@sveltejs/kit": "^2.22.0",
|
|
17
|
+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
18
18
|
"svelte": "^5.25.0",
|
|
19
|
-
"vite": "^
|
|
19
|
+
"vite": "^7.0.4"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@sveltejs/adapter-auto": "^6.0.0",
|
|
27
|
-
"@sveltejs/kit": "^2.
|
|
27
|
+
"@sveltejs/kit": "^2.22.0",
|
|
28
28
|
"@sveltejs/package": "^2.0.0",
|
|
29
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
29
|
+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
30
30
|
"publint": "^0.3.2",
|
|
31
31
|
"svelte": "^5.0.0",
|
|
32
32
|
"typescript": "^5.3.2",
|
|
33
|
-
"vite": "^
|
|
33
|
+
"vite": "^7.0.4"
|
|
34
34
|
},
|
|
35
35
|
"keywords": ["svelte"]
|
|
36
36
|
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@sveltejs/adapter-auto": "^6.0.0",
|
|
14
|
-
"@sveltejs/kit": "^2.
|
|
15
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
14
|
+
"@sveltejs/kit": "^2.22.0",
|
|
15
|
+
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
16
16
|
"svelte": "^5.0.0",
|
|
17
|
-
"vite": "^
|
|
17
|
+
"vite": "^7.0.4"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sv",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI for creating and updating SvelteKit projects",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tinyexec": "^0.3.2",
|
|
38
38
|
"valibot": "^0.41.0",
|
|
39
39
|
"@sveltejs/addons": "0.0.0",
|
|
40
|
-
"@sveltejs/
|
|
41
|
-
"@sveltejs/
|
|
40
|
+
"@sveltejs/cli-core": "0.0.0",
|
|
41
|
+
"@sveltejs/create": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
|
44
44
|
"create",
|