@pipelab/cli 2.0.0-beta.40 → 2.0.0-beta.41
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/{bundled-cli-DjHJDJJv.mjs → bundled-cli-CaIlyf7t.mjs} +4 -5
- package/index.mjs +12 -12
- package/package.json +1 -1
- package/remote-VyQe-kKS.mjs +4 -0
- package/src-C1OPJi-3.mjs +146173 -0
- package/ui/assets/{index-kScFpWKQ.js → index-zs3hFZfS.js} +1 -1
- package/ui/index.html +1 -1
- package/remote-B_ZFvW4p.mjs +0 -4
- package/src-BIhqbSQ8.mjs +0 -296410
|
@@ -5,12 +5,11 @@ import { homedir, platform } from "node:os";
|
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { mkdir, mkdtemp, realpath } from "node:fs/promises";
|
|
7
7
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
8
|
-
var getFilename, getDirname, __dirname
|
|
8
|
+
var getFilename, getDirname, __dirname;
|
|
9
9
|
var init_esm_shims = __esmMin((() => {
|
|
10
10
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
11
11
|
getDirname = () => path.dirname(getFilename());
|
|
12
12
|
__dirname = /* @__PURE__ */ getDirname();
|
|
13
|
-
__filename = /* @__PURE__ */ getFilename();
|
|
14
13
|
}));
|
|
15
14
|
//#endregion
|
|
16
15
|
//#region ../../packages/constants/src/index.ts
|
|
@@ -101,11 +100,11 @@ var PipelabContext = class {
|
|
|
101
100
|
this.temporaryDirectory = options.temporaryDirectory;
|
|
102
101
|
}
|
|
103
102
|
async ensureNodeJS() {
|
|
104
|
-
const { ensureNodeJS } = await import("./remote-
|
|
103
|
+
const { ensureNodeJS } = await import("./remote-VyQe-kKS.mjs");
|
|
105
104
|
return ensureNodeJS(this);
|
|
106
105
|
}
|
|
107
106
|
async ensurePNPM() {
|
|
108
|
-
const { ensurePNPM } = await import("./remote-
|
|
107
|
+
const { ensurePNPM } = await import("./remote-VyQe-kKS.mjs");
|
|
109
108
|
return ensurePNPM(this);
|
|
110
109
|
}
|
|
111
110
|
async resolveBundledAsset(packageName) {
|
|
@@ -233,4 +232,4 @@ function resolveBundledAsset(packageName, cliDirname) {
|
|
|
233
232
|
throw new Error(`Bundled asset ${packageName} was not found. Expected it under the CLI assets directory.`);
|
|
234
233
|
}
|
|
235
234
|
//#endregion
|
|
236
|
-
export { getDefaultUserDataPath as a, DEFAULT_PNPM_VERSION as c, outFolderName as d, uiDevPort as f, init_esm_shims as
|
|
235
|
+
export { getDefaultUserDataPath as a, DEFAULT_PNPM_VERSION as c, outFolderName as d, uiDevPort as f, init_esm_shims as h, PipelabContext as i, getBinName as l, __dirname as m, resolveBundledUiFolder as n, projectRoot as o, websocketPort as p, CacheFolder as r, DEFAULT_NODE_VERSION as s, bundled_cli_exports as t, getUiDevServerMissingWarning as u };
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as __require, s as __toESM, t as __commonJSMin } from "./chunk-M2dkpuaD.mjs";
|
|
3
|
-
import { a as getDefaultUserDataPath$1, i as PipelabContext } from "./bundled-cli-
|
|
4
|
-
import { b as parseReleaseConfig, c as readDesktopBootstrapEnvironment, d as buildCoreReleaseRegistry, f as builtInProviders, g as setupSettingsConfigFile, h as loginToPoki, i as createPipelabCloudAuthClient, l as BuildHistoryStorage, m as loginToSteam, n as prepareReleaseWorkflow, p as loadStrictProjects, r as listPreflightDestinations, s as serveCommand, t as executeWorkflow, u as ReleasePersistence, x as isSupabaseAvailable } from "./src-
|
|
3
|
+
import { a as getDefaultUserDataPath$1, i as PipelabContext } from "./bundled-cli-CaIlyf7t.mjs";
|
|
4
|
+
import { b as parseReleaseConfig, c as readDesktopBootstrapEnvironment, d as buildCoreReleaseRegistry, f as builtInProviders, g as setupSettingsConfigFile, h as loginToPoki, i as createPipelabCloudAuthClient, l as BuildHistoryStorage, m as loginToSteam, n as prepareReleaseWorkflow, p as loadStrictProjects, r as listPreflightDestinations, s as serveCommand, t as executeWorkflow, u as ReleasePersistence, x as isSupabaseAvailable } from "./src-C1OPJi-3.mjs";
|
|
5
5
|
import "./mjs-DqOON7ud.mjs";
|
|
6
6
|
import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -22,7 +22,7 @@ import * as _ from "node:readline";
|
|
|
22
22
|
import P$1, { createInterface } from "node:readline";
|
|
23
23
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
24
24
|
//#region package.json
|
|
25
|
-
var version$2 = "2.0.0-beta.
|
|
25
|
+
var version$2 = "2.0.0-beta.41";
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/paths.ts
|
|
28
28
|
const getDefaultUserDataPath = () => {
|
|
@@ -2265,7 +2265,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2265
2265
|
const EventEmitter$2 = __require("node:events").EventEmitter;
|
|
2266
2266
|
const childProcess = __require("node:child_process");
|
|
2267
2267
|
const path$2 = __require("node:path");
|
|
2268
|
-
const fs$
|
|
2268
|
+
const fs$2 = __require("node:fs");
|
|
2269
2269
|
const process$1 = __require("node:process");
|
|
2270
2270
|
const { Argument, humanReadableArgName } = require_argument();
|
|
2271
2271
|
const { CommanderError } = require_error();
|
|
@@ -3113,9 +3113,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3113
3113
|
];
|
|
3114
3114
|
function findFile(baseDir, baseName) {
|
|
3115
3115
|
const localBin = path$2.resolve(baseDir, baseName);
|
|
3116
|
-
if (fs$
|
|
3116
|
+
if (fs$2.existsSync(localBin)) return localBin;
|
|
3117
3117
|
if (sourceExt.includes(path$2.extname(baseName))) return void 0;
|
|
3118
|
-
const foundExt = sourceExt.find((ext) => fs$
|
|
3118
|
+
const foundExt = sourceExt.find((ext) => fs$2.existsSync(`${localBin}${ext}`));
|
|
3119
3119
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
3120
3120
|
}
|
|
3121
3121
|
this._checkForMissingMandatoryOptions();
|
|
@@ -3125,7 +3125,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3125
3125
|
if (this._scriptPath) {
|
|
3126
3126
|
let resolvedScriptPath;
|
|
3127
3127
|
try {
|
|
3128
|
-
resolvedScriptPath = fs$
|
|
3128
|
+
resolvedScriptPath = fs$2.realpathSync(this._scriptPath);
|
|
3129
3129
|
} catch (err) {
|
|
3130
3130
|
resolvedScriptPath = this._scriptPath;
|
|
3131
3131
|
}
|
|
@@ -6847,7 +6847,7 @@ async function runWorkflowCommand(id, options) {
|
|
|
6847
6847
|
if (options.failOnError && result.result.status === "completed-with-errors") throw new Error("Workflow completed with errors");
|
|
6848
6848
|
}
|
|
6849
6849
|
(/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6850
|
-
const fs$
|
|
6850
|
+
const fs$1 = __require("fs");
|
|
6851
6851
|
const path$1 = __require("path");
|
|
6852
6852
|
const os = __require("os");
|
|
6853
6853
|
const crypto = __require("crypto");
|
|
@@ -6975,10 +6975,10 @@ async function runWorkflowCommand(id, options) {
|
|
|
6975
6975
|
function _vaultPath(options) {
|
|
6976
6976
|
let possibleVaultPath = null;
|
|
6977
6977
|
if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
|
|
6978
|
-
for (const filepath of options.path) if (fs$
|
|
6978
|
+
for (const filepath of options.path) if (fs$1.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
6979
6979
|
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
6980
6980
|
else possibleVaultPath = path$1.resolve(process.cwd(), ".env.vault");
|
|
6981
|
-
if (fs$
|
|
6981
|
+
if (fs$1.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
6982
6982
|
return null;
|
|
6983
6983
|
}
|
|
6984
6984
|
function _resolveHome(envPath) {
|
|
@@ -7012,7 +7012,7 @@ async function runWorkflowCommand(id, options) {
|
|
|
7012
7012
|
let lastError;
|
|
7013
7013
|
const parsedAll = {};
|
|
7014
7014
|
for (const path of optionPaths) try {
|
|
7015
|
-
const parsed = DotenvModule.parse(fs$
|
|
7015
|
+
const parsed = DotenvModule.parse(fs$1.readFileSync(path, { encoding }));
|
|
7016
7016
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
7017
7017
|
} catch (e) {
|
|
7018
7018
|
if (debug) _debug(`failed to load ${path} ${e.message}`);
|
|
@@ -10660,7 +10660,7 @@ const isProduction = process.env.TEST !== "true";
|
|
|
10660
10660
|
if (process.env.PIPELAB_DESKTOP_BOOTSTRAP_SECRET) console.info("[CLI] Authenticated Desktop CLI entry loaded.");
|
|
10661
10661
|
let posthog;
|
|
10662
10662
|
if (isProduction && "phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql") posthog = new PostHog("phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql", { host: "https://eu.i.posthog.com" });
|
|
10663
|
-
let version = "2.0.0-beta.
|
|
10663
|
+
let version = "2.0.0-beta.41";
|
|
10664
10664
|
if (version === "0.0.0") try {
|
|
10665
10665
|
const packageJsonPath = existsSync(join(__dirname, "package.json")) ? join(__dirname, "package.json") : join(__dirname, "..", "package.json");
|
|
10666
10666
|
if (existsSync(packageJsonPath)) version = JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
|
package/package.json
CHANGED