@pipelab/cli 2.0.0-beta.30 → 2.0.0-beta.31
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/index.mjs +8 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -69291,7 +69291,11 @@ async function runPipelineCommand(file, options, version) {
|
|
|
69291
69291
|
const effectivePipelineId = pipelineId || "cli-run";
|
|
69292
69292
|
console.log(`Executing pipeline: ${effectiveProjectName} (${effectivePipelineId})`);
|
|
69293
69293
|
if (!options.userData) throw new Error("userDataPath is required for runPipelineCommand");
|
|
69294
|
-
const
|
|
69294
|
+
const releaseTag = version.includes("beta") ? "beta" : "latest";
|
|
69295
|
+
const context = new PipelabContext({
|
|
69296
|
+
userDataPath: options.userData,
|
|
69297
|
+
releaseTag
|
|
69298
|
+
});
|
|
69295
69299
|
await registerAllHandlers({
|
|
69296
69300
|
version,
|
|
69297
69301
|
context
|
|
@@ -69363,7 +69367,7 @@ async function runPipelineCommand(file, options, version) {
|
|
|
69363
69367
|
}
|
|
69364
69368
|
//#endregion
|
|
69365
69369
|
//#region package.json
|
|
69366
|
-
var version$2 = "2.0.0-beta.
|
|
69370
|
+
var version$2 = "2.0.0-beta.31";
|
|
69367
69371
|
//#endregion
|
|
69368
69372
|
//#region src/paths.ts
|
|
69369
69373
|
const getDefaultUserDataPath = () => {
|
|
@@ -77315,8 +77319,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
77315
77319
|
const isProduction = process.env.TEST !== "true";
|
|
77316
77320
|
let posthog;
|
|
77317
77321
|
if (isProduction && "phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql") posthog = new PostHog("phc_oXBjgJkl3ORfM2b6FZlbwaWHkGxJp9jFrj0l5aLjJql", { host: "https://eu.i.posthog.com" });
|
|
77318
|
-
let version = "0.0.
|
|
77319
|
-
try {
|
|
77322
|
+
let version = "2.0.0-beta.31";
|
|
77323
|
+
if (version === "0.0.0") try {
|
|
77320
77324
|
const packageJsonPath = existsSync(join(__dirname, "package.json")) ? join(__dirname, "package.json") : join(__dirname, "..", "package.json");
|
|
77321
77325
|
if (existsSync(packageJsonPath)) version = JSON.parse(readFileSync(packageJsonPath, "utf-8")).version;
|
|
77322
77326
|
} catch (e) {
|