@fedify/cli 2.0.0-pr.479.1902 → 2.0.0-pr.479.1903

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/cli",
3
- "version": "2.0.0-pr.479.1902+5ac1b5d2",
3
+ "version": "2.0.0-pr.479.1903+05f65629",
4
4
  "license": "MIT",
5
5
  "exports": "./src/mod.ts",
6
6
  "imports": {
package/dist/deno.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  //#region deno.json
5
5
  var name = "@fedify/cli";
6
- var version = "2.0.0-pr.479.1902+5ac1b5d2";
6
+ var version = "2.0.0-pr.479.1903+05f65629";
7
7
  var license = "MIT";
8
8
  var exports = "./src/mod.ts";
9
9
  var imports = {
@@ -20,7 +20,7 @@ const BANNED_WFS = ["next"];
20
20
  *
21
21
  * @param dirs - Array of paths to generated app directories
22
22
  */
23
- async function runServerAndReadUser(dirs) {
23
+ async function runServerAndLookupUser(dirs) {
24
24
  const valid = dirs.filter(Boolean);
25
25
  if (valid.length === 0) {
26
26
  printErrorMessage`\nNo directories to lookup test.`;
@@ -186,4 +186,4 @@ function determinePort(server) {
186
186
  }
187
187
 
188
188
  //#endregion
189
- export { runServerAndReadUser };
189
+ export { runServerAndLookupUser };
@@ -3,15 +3,15 @@
3
3
 
4
4
  import { printMessage } from "../../utils.js";
5
5
  import create_default, { filterOptions, generateTestCases } from "./create.js";
6
- import { runServerAndReadUser } from "./lookup.js";
6
+ import { runServerAndLookupUser } from "./lookup.js";
7
7
  import { join } from "node:path";
8
8
  import { optionNames } from "@optique/core";
9
- import { filter, map as map$1, pipe, tap } from "@fxts/core";
9
+ import { always, filter, map as map$1, pipe, tap, unless } from "@fxts/core";
10
10
 
11
11
  //#region src/init/test/run.ts
12
12
  const isDryRun = ({ dryRun }) => dryRun;
13
13
  const isHydRun = ({ hydRun }) => hydRun;
14
- const runTests = (dry) => ({ testDirPrefix, dryRun, hydRun,...options }) => pipe(options, printStartMessage, generateTestCases, filter(filterOptions), map$1(create_default(join(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)), Array.fromAsync, runServerAndReadUser);
14
+ const runTests = (dry) => ({ testDirPrefix, dryRun, hydRun,...options }) => pipe(options, printStartMessage, generateTestCases, filter(filterOptions), map$1(create_default(join(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)), Array.fromAsync, unless(always(dry), runServerAndLookupUser));
15
15
  const printStartMessage = tap(() => printMessage`\n
16
16
  Init Test start!
17
17
  Options: ${optionNames([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/cli",
3
- "version": "2.0.0-pr.479.1902+5ac1b5d2",
3
+ "version": "2.0.0-pr.479.1903+05f65629",
4
4
  "description": "CLI toolchain for Fedify and debugging ActivityPub",
5
5
  "keywords": [
6
6
  "fedify",
@@ -71,10 +71,10 @@
71
71
  "ora": "^8.2.0",
72
72
  "shiki": "^1.6.4",
73
73
  "srvx": "^0.8.7",
74
- "@fedify/fedify": "2.0.0-pr.479.1902+5ac1b5d2",
75
- "@fedify/sqlite": "2.0.0-pr.479.1902+5ac1b5d2",
76
- "@fedify/vocab-runtime": "2.0.0-pr.479.1902+5ac1b5d2",
77
- "@fedify/vocab-tools": "2.0.0-pr.479.1902+5ac1b5d2"
74
+ "@fedify/fedify": "2.0.0-pr.479.1903+05f65629",
75
+ "@fedify/vocab-runtime": "2.0.0-pr.479.1903+05f65629",
76
+ "@fedify/sqlite": "2.0.0-pr.479.1903+05f65629",
77
+ "@fedify/vocab-tools": "2.0.0-pr.479.1903+05f65629"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/bun": "^1.2.23",
@@ -25,7 +25,7 @@ const BANNED_WFS: WebFramework[] = ["next"];
25
25
  *
26
26
  * @param dirs - Array of paths to generated app directories
27
27
  */
28
- export default async function runServerAndReadUser(
28
+ export default async function runServerAndLookupUser(
29
29
  dirs: string[],
30
30
  ): Promise<void> {
31
31
  const valid = dirs.filter(Boolean);
@@ -1,9 +1,9 @@
1
- import { filter, map, pipe, tap } from "@fxts/core";
1
+ import { always, filter, map, pipe, tap, unless } from "@fxts/core";
2
2
  import { optionNames } from "@optique/core";
3
3
  import { join } from "node:path";
4
4
  import { printMessage } from "../../utils.ts";
5
5
  import createTestApp, { filterOptions, generateTestCases } from "./create.ts";
6
- import runServerAndReadUser from "./lookup.ts";
6
+ import runServerAndLookupUser from "./lookup.ts";
7
7
  import type { InitTestData } from "./types.ts";
8
8
 
9
9
  export const isDryRun = <T extends { dryRun: boolean }>({ dryRun }: T) =>
@@ -21,7 +21,7 @@ export const runTests =
21
21
  filter(filterOptions),
22
22
  map(createTestApp(join(testDirPrefix, getMid(dryRun, hydRun, dry)), dry)),
23
23
  Array.fromAsync<string>,
24
- runServerAndReadUser,
24
+ unless(always(dry), runServerAndLookupUser),
25
25
  );
26
26
 
27
27
  const printStartMessage: <T>(t: T) => T = tap(