sv 0.12.3 → 0.12.4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { f as program, l as from, r as detectPackageManager, u as Command } from "./package-manager-BYzDyeam.mjs";
|
|
3
|
-
import { a as helpConfig, i as forwardExitCode, n as add, o as name, r as create, s as version } from "./engine-
|
|
3
|
+
import { a as helpConfig, i as forwardExitCode, n as add, o as name, r as create, s as version } from "./engine-52M6yw67.mjs";
|
|
4
4
|
import { color, resolveCommand } from "@sveltejs/sv-utils";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { execSync } from "node:child_process";
|
|
@@ -1921,18 +1921,12 @@ var paraglide_default = defineAddon({
|
|
|
1921
1921
|
shortDescription: "i18n",
|
|
1922
1922
|
homepage: "https://inlang.com/m/gerre34r/library-inlang-paraglideJs",
|
|
1923
1923
|
options: options$4,
|
|
1924
|
-
setup: ({ kit, unsupported
|
|
1924
|
+
setup: ({ kit, unsupported }) => {
|
|
1925
1925
|
if (!kit) unsupported("Requires SvelteKit");
|
|
1926
|
-
runsAfter("sveltekitAdapter");
|
|
1927
1926
|
},
|
|
1928
|
-
run: ({ sv, options: options$8, files, language, kit
|
|
1927
|
+
run: ({ sv, options: options$8, files, language, kit }) => {
|
|
1929
1928
|
if (!kit) throw new Error("SvelteKit is required");
|
|
1930
1929
|
const paraglideOutDir = "src/lib/paraglide";
|
|
1931
|
-
const isServerless = [
|
|
1932
|
-
dependencyVersion("@sveltejs/adapter-vercel"),
|
|
1933
|
-
dependencyVersion("@sveltejs/adapter-cloudflare"),
|
|
1934
|
-
dependencyVersion("@sveltejs/adapter-netlify")
|
|
1935
|
-
].some((value) => value !== void 0);
|
|
1936
1930
|
sv.devDependency("@inlang/paraglide-js", "^2.10.0");
|
|
1937
1931
|
sv.file(files.viteConfig, (content) => {
|
|
1938
1932
|
const { ast, generateCode } = parse.script(content);
|
|
@@ -1941,10 +1935,9 @@ var paraglide_default = defineAddon({
|
|
|
1941
1935
|
imports: [vitePluginName],
|
|
1942
1936
|
from: "@inlang/paraglide-js"
|
|
1943
1937
|
});
|
|
1944
|
-
js.vite.addPlugin(ast, { code: `${vitePluginName}({
|
|
1945
|
-
project: './project.inlang',
|
|
1946
|
-
outdir: './${paraglideOutDir}'
|
|
1947
|
-
${isServerless ? "disableAsyncLocalStorage: true" : ""}
|
|
1938
|
+
js.vite.addPlugin(ast, { code: `${vitePluginName}({
|
|
1939
|
+
project: './project.inlang',
|
|
1940
|
+
outdir: './${paraglideOutDir}'
|
|
1948
1941
|
})` });
|
|
1949
1942
|
return generateCode();
|
|
1950
1943
|
});
|
|
@@ -2702,7 +2695,7 @@ function getAddonDetails(id) {
|
|
|
2702
2695
|
//#endregion
|
|
2703
2696
|
//#region package.json
|
|
2704
2697
|
var name = "sv";
|
|
2705
|
-
var version = "0.12.
|
|
2698
|
+
var version = "0.12.4";
|
|
2706
2699
|
|
|
2707
2700
|
//#endregion
|
|
2708
2701
|
//#region src/core/errors.ts
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { p as create } from "../package-manager-BYzDyeam.mjs";
|
|
2
|
-
import { c as officialAddons, l as defineAddon, t as add, u as defineAddonOptions } from "../engine-
|
|
2
|
+
import { c as officialAddons, l as defineAddon, t as add, u as defineAddonOptions } from "../engine-52M6yw67.mjs";
|
|
3
3
|
|
|
4
4
|
export { add, create, defineAddon, defineAddonOptions, officialAddons };
|