@fedify/cli 2.0.0-pr.479.1913 → 2.0.0-pr.479.1922
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 +1 -1
- package/dist/deno.js +1 -1
- package/dist/init/action/configs.js +2 -1
- package/dist/init/test/action.js +1 -1
- package/dist/init/test/lookup.js +3 -3
- package/package.json +5 -5
- package/src/init/action/configs.ts +3 -1
- package/src/init/test/action.ts +1 -1
- package/src/init/test/lookup.ts +3 -3
package/deno.json
CHANGED
package/dist/deno.js
CHANGED
|
@@ -9,6 +9,7 @@ import { PACKAGES_PATH } from "./const.js";
|
|
|
9
9
|
import { getDependencies, getDevDependencies, joinDepsReg } from "./deps.js";
|
|
10
10
|
import { join, relative } from "node:path";
|
|
11
11
|
import { uniq } from "es-toolkit";
|
|
12
|
+
import { realpathSync } from "node:fs";
|
|
12
13
|
import { concat, filter, keys, map, pick, pipe, toArray } from "@fxts/core/index.js";
|
|
13
14
|
|
|
14
15
|
//#region src/init/action/configs.ts
|
|
@@ -30,7 +31,7 @@ const loadDenoConfig = (data) => ({
|
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
const getUnstable = ({ kv: { denoUnstable: kv = [] }, mq: { denoUnstable: mq = [] } }) => pipe(["temporal"], concat(kv), concat(mq), toArray, uniq);
|
|
33
|
-
const getLinks = ({ kv, mq, initializer, dir }) => pipe({ "@fedify/fedify": "" }, merge(initializer.dependencies), merge(kv.dependencies), merge(mq.dependencies), keys, filter((dep) => dep.includes("@fedify/")), map((dep) => dep.replace("@fedify/", "")), map((dep) => join(PACKAGES_PATH, dep)), map((absolutePath) => relative(dir,
|
|
34
|
+
const getLinks = ({ kv, mq, initializer, dir }) => pipe({ "@fedify/fedify": "" }, merge(initializer.dependencies), merge(kv.dependencies), merge(mq.dependencies), keys, filter((dep) => dep.includes("@fedify/")), map((dep) => dep.replace("@fedify/", "")), map((dep) => join(PACKAGES_PATH, dep)), map((absolutePath) => realpathSync(absolutePath)), map((realAbsolutePath) => relative(realpathSync(dir), realAbsolutePath)), toArray);
|
|
34
35
|
/**
|
|
35
36
|
* Loads TypeScript configuration object for Node.js/Bun projects.
|
|
36
37
|
* Uses compiler options from the framework initializer.
|
package/dist/init/test/action.js
CHANGED
|
@@ -8,7 +8,7 @@ import { emptyTestDir, genRunId, genTestDirPrefix, logTestDir } from "./utils.js
|
|
|
8
8
|
import { pipe, tap, when } from "@fxts/core";
|
|
9
9
|
|
|
10
10
|
//#region src/init/test/action.ts
|
|
11
|
-
const runTestInit = (options) => pipe(options, set("runId", genRunId), set("testDirPrefix", genTestDirPrefix), tap(emptyTestDir), fillEmptyOptions, tap(when(isDryRun, run_default(true))), tap(when(isHydRun, run_default(false)))
|
|
11
|
+
const runTestInit = (options) => pipe(options, set("runId", genRunId), set("testDirPrefix", genTestDirPrefix), tap(emptyTestDir), fillEmptyOptions, tap(logTestDir), tap(when(isDryRun, run_default(true))), tap(when(isHydRun, run_default(false))));
|
|
12
12
|
const isDryRun = ({ dryRun }) => dryRun;
|
|
13
13
|
const isHydRun = ({ hydRun }) => hydRun;
|
|
14
14
|
var action_default = runTestInit;
|
package/dist/init/test/lookup.js
CHANGED
|
@@ -147,9 +147,9 @@ function determinePort(server) {
|
|
|
147
147
|
/listening on.*:(\d+)/i,
|
|
148
148
|
/server.*:(\d+)/i,
|
|
149
149
|
/port\s*:?\s*(\d+)/i,
|
|
150
|
-
/https
|
|
151
|
-
/https
|
|
152
|
-
/https
|
|
150
|
+
/https?:\/\/localhost:(\d+)/i,
|
|
151
|
+
/https?:\/\/0\.0\.0\.0:(\d+)/i,
|
|
152
|
+
/https?:\/\/127\.0\.0\.1:(\d+)/i,
|
|
153
153
|
/https?:\/\/[^:]+:(\d+)/i
|
|
154
154
|
];
|
|
155
155
|
const checkForPort = (data) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/cli",
|
|
3
|
-
"version": "2.0.0-pr.479.
|
|
3
|
+
"version": "2.0.0-pr.479.1922+564a1890",
|
|
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.
|
|
75
|
-
"@fedify/sqlite": "2.0.0-pr.479.
|
|
76
|
-
"@fedify/vocab-runtime": "2.0.0-pr.479.
|
|
77
|
-
"@fedify/vocab-tools": "2.0.0-pr.479.
|
|
74
|
+
"@fedify/fedify": "2.0.0-pr.479.1922+564a1890",
|
|
75
|
+
"@fedify/sqlite": "2.0.0-pr.479.1922+564a1890",
|
|
76
|
+
"@fedify/vocab-runtime": "2.0.0-pr.479.1922+564a1890",
|
|
77
|
+
"@fedify/vocab-tools": "2.0.0-pr.479.1922+564a1890"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.2.23",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
toArray,
|
|
9
9
|
} from "@fxts/core/index.js";
|
|
10
10
|
import { uniq } from "es-toolkit";
|
|
11
|
+
import { realpathSync } from "node:fs";
|
|
11
12
|
import { join as joinPath, relative } from "node:path";
|
|
12
13
|
import { merge } from "../../utils.ts";
|
|
13
14
|
import biome from "../json/biome.json" with { type: "json" };
|
|
@@ -65,7 +66,8 @@ const getLinks = <
|
|
|
65
66
|
filter((dep) => dep.includes("@fedify/")),
|
|
66
67
|
map((dep) => dep.replace("@fedify/", "")),
|
|
67
68
|
map((dep) => joinPath(PACKAGES_PATH, dep)),
|
|
68
|
-
map((absolutePath) =>
|
|
69
|
+
map((absolutePath) => realpathSync(absolutePath)),
|
|
70
|
+
map((realAbsolutePath) => relative(realpathSync(dir), realAbsolutePath)),
|
|
69
71
|
toArray,
|
|
70
72
|
);
|
|
71
73
|
|
package/src/init/test/action.ts
CHANGED
|
@@ -17,9 +17,9 @@ const runTestInit = (options: TestInitCommand) =>
|
|
|
17
17
|
set("testDirPrefix", genTestDirPrefix),
|
|
18
18
|
tap(emptyTestDir),
|
|
19
19
|
fillEmptyOptions,
|
|
20
|
+
tap(logTestDir),
|
|
20
21
|
tap(when(isDryRun, runTests(true))),
|
|
21
22
|
tap(when(isHydRun, runTests(false))),
|
|
22
|
-
tap(logTestDir),
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
const isDryRun = <T extends { dryRun: boolean }>({ dryRun }: T) => dryRun;
|
package/src/init/test/lookup.ts
CHANGED
|
@@ -205,9 +205,9 @@ function determinePort(
|
|
|
205
205
|
/listening on.*:(\d+)/i,
|
|
206
206
|
/server.*:(\d+)/i,
|
|
207
207
|
/port\s*:?\s*(\d+)/i,
|
|
208
|
-
/https
|
|
209
|
-
/https
|
|
210
|
-
/https
|
|
208
|
+
/https?:\/\/localhost:(\d+)/i,
|
|
209
|
+
/https?:\/\/0\.0\.0\.0:(\d+)/i,
|
|
210
|
+
/https?:\/\/127\.0\.0\.1:(\d+)/i,
|
|
211
211
|
/https?:\/\/[^:]+:(\d+)/i,
|
|
212
212
|
];
|
|
213
213
|
|