fleetfizz 0.14.0 → 0.14.1
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/fleetfizz.mjs +13 -33
- package/package.json +1 -1
package/dist/fleetfizz.mjs
CHANGED
|
@@ -35654,7 +35654,7 @@ const runWith = (command, config) => {
|
|
|
35654
35654
|
};
|
|
35655
35655
|
//#endregion
|
|
35656
35656
|
//#region package.json
|
|
35657
|
-
var version = "0.14.
|
|
35657
|
+
var version = "0.14.1";
|
|
35658
35658
|
//#endregion
|
|
35659
35659
|
//#region ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
35660
35660
|
/**
|
|
@@ -40557,11 +40557,20 @@ const pnpm = globals("pnpm");
|
|
|
40557
40557
|
//#region ../../packages/providers/src/fleetfizz/index.ts
|
|
40558
40558
|
const installerOf = (paths) => {
|
|
40559
40559
|
const has = (...parts) => paths.some((path) => parts.some((part) => path.includes(part)));
|
|
40560
|
-
if (has("
|
|
40560
|
+
if (has("vite-plus/packages/", "vite-plus/bin/")) return "vp";
|
|
40561
40561
|
if (has("/pnpm/")) return "pnpm";
|
|
40562
40562
|
if (has("/.bun/")) return "bun";
|
|
40563
40563
|
if (has("/lib/node_modules/")) return "npm";
|
|
40564
40564
|
};
|
|
40565
|
+
const ownInstaller = fn("ownInstaller")(function* () {
|
|
40566
|
+
const fs = yield* FileSystem;
|
|
40567
|
+
const main = process.argv[1] ?? "";
|
|
40568
|
+
const real = yield* fs.realPath(main).pipe(orElseSucceed(() => main));
|
|
40569
|
+
return {
|
|
40570
|
+
at: main,
|
|
40571
|
+
installer: installerOf([main, real])
|
|
40572
|
+
};
|
|
40573
|
+
});
|
|
40565
40574
|
const decodeFact$2 = decodeUnknownOption(Union([Struct({
|
|
40566
40575
|
fact: Literal("fizz"),
|
|
40567
40576
|
path: String$6,
|
|
@@ -40604,29 +40613,9 @@ const fleetfizz = {
|
|
|
40604
40613
|
items: () => [{ name: ITEM }],
|
|
40605
40614
|
observe: () => OBSERVE$1,
|
|
40606
40615
|
parse,
|
|
40607
|
-
resolve: (
|
|
40608
|
-
const facts = [];
|
|
40609
|
-
yield* runScript({
|
|
40610
|
-
name: starting.machine.name,
|
|
40611
|
-
local: true
|
|
40612
|
-
}, checkScript({
|
|
40613
|
-
scope: starting,
|
|
40614
|
-
providers: [{
|
|
40615
|
-
provider: fleetfizz,
|
|
40616
|
-
items
|
|
40617
|
-
}]
|
|
40618
|
-
}), [], (line) => sync(() => {
|
|
40619
|
-
const parsed = parseLine(line);
|
|
40620
|
-
if (parsed.kind === "state") facts.push(parsed.fact);
|
|
40621
|
-
})).pipe(timeout("2 minutes"));
|
|
40622
|
-
const { fizz } = parse(assembleState(facts).facts.fleetfizz ?? []);
|
|
40623
|
-
return {
|
|
40624
|
-
from: starting.machine.name,
|
|
40625
|
-
installer: fizz === void 0 ? void 0 : installerOf([fizz.path, fizz.real])
|
|
40626
|
-
};
|
|
40627
|
-
}).pipe(orElseSucceed(() => ({
|
|
40616
|
+
resolve: (_, { starting }) => ownInstaller().pipe(map$5(({ installer }) => ({
|
|
40628
40617
|
from: starting.machine.name,
|
|
40629
|
-
installer
|
|
40618
|
+
installer
|
|
40630
40619
|
}))),
|
|
40631
40620
|
decide({ observed, resolved, ctx }) {
|
|
40632
40621
|
const version = ctx.config.version;
|
|
@@ -75336,15 +75325,6 @@ var VersionError = class extends TaggedError()("VersionError", { reason: String$
|
|
|
75336
75325
|
}
|
|
75337
75326
|
};
|
|
75338
75327
|
const SWITCHED = "FLEETFIZZ_SWITCHED";
|
|
75339
|
-
const ownInstaller = fn("ownInstaller")(function* () {
|
|
75340
|
-
const fs = yield* FileSystem;
|
|
75341
|
-
const main = process.argv[1] ?? "";
|
|
75342
|
-
const real = yield* fs.realPath(main).pipe(orElseSucceed(() => main));
|
|
75343
|
-
return {
|
|
75344
|
-
at: main,
|
|
75345
|
-
installer: installerOf([main, real])
|
|
75346
|
-
};
|
|
75347
|
-
});
|
|
75348
75328
|
const runHere = fn("runHere")(function* (command, args, env = {}) {
|
|
75349
75329
|
const spawner = yield* ChildProcessSpawner;
|
|
75350
75330
|
return yield* scoped(gen(function* () {
|