vela 0.10.7 → 0.10.8
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.js +8 -2
- package/dist/bin.js.map +4 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "vela",
|
|
10
|
-
version: "0.10.
|
|
10
|
+
version: "0.10.8",
|
|
11
11
|
type: "module",
|
|
12
12
|
description: "A CLI for creating and updating SvelteKit projects",
|
|
13
13
|
license: "MIT",
|
|
@@ -7055,6 +7055,12 @@ import { x as x3 } from "tinyexec";
|
|
|
7055
7055
|
import { detect as detect5 } from "package-manager-detector";
|
|
7056
7056
|
import { resolveCommand as resolveCommand5 } from "package-manager-detector/commands";
|
|
7057
7057
|
|
|
7058
|
+
// src/lib/build-env.ts
|
|
7059
|
+
function applyBuildEnv(cwd, env2 = process.env) {
|
|
7060
|
+
env2.VITE_BUILD = "true";
|
|
7061
|
+
env2.VELA_DATA_DIR ??= localDataDir(cwd);
|
|
7062
|
+
}
|
|
7063
|
+
|
|
7058
7064
|
// src/lib/origin.ts
|
|
7059
7065
|
import process22 from "node:process";
|
|
7060
7066
|
function resolveOrigin(workspaceRootDir, envTag, config = {}) {
|
|
@@ -7078,7 +7084,7 @@ function normalizeOrigin(value) {
|
|
|
7078
7084
|
var PRERENDERED_DIR = path35.join(".svelte-kit", "output", "prerendered");
|
|
7079
7085
|
var build = new Command67("build").description("build the app").configureHelp(helpConfig).option("-t, --target <target>", "which copy of the app to build for", PRODUCTION_TARGET).action(async (options) => {
|
|
7080
7086
|
const cwd = process23.cwd();
|
|
7081
|
-
|
|
7087
|
+
applyBuildEnv(cwd);
|
|
7082
7088
|
const origin = await originForBuild(cwd, options.target);
|
|
7083
7089
|
if (origin) process23.env.VELA_ORIGIN = origin;
|
|
7084
7090
|
let pbProc;
|