@gitpagedocs/cli 1.1.47 → 1.1.49
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/builders/root-config-builder.mjs +1 -1
- package/index.mjs +13 -1
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ export function buildRootConfig(options = {}) {
|
|
|
11
11
|
const useOfficialLayouts = !useLocalLayoutConfig;
|
|
12
12
|
const githubOwner = options.githubOwner;
|
|
13
13
|
const githubRepo = options.githubRepo;
|
|
14
|
-
const repositorySearchHome =
|
|
14
|
+
const repositorySearchHome = false;
|
|
15
15
|
const renderingUrl =
|
|
16
16
|
githubOwner && githubRepo
|
|
17
17
|
? `https://${githubOwner}.github.io/${githubRepo}/`
|
package/index.mjs
CHANGED
|
@@ -8,9 +8,21 @@ const scriptPath = fileURLToPath(import.meta.url);
|
|
|
8
8
|
const scriptDir = path.dirname(scriptPath);
|
|
9
9
|
const tsEntry = path.join(scriptDir, "presentation", "index.ts");
|
|
10
10
|
|
|
11
|
+
// Resolve tsx from THIS package's location, not the user's cwd. `node --import
|
|
12
|
+
// tsx` would otherwise resolve the bare "tsx" specifier relative to the current
|
|
13
|
+
// working directory, which fails when the CLI is installed globally and run
|
|
14
|
+
// from a project that doesn't depend on tsx (ERR_MODULE_NOT_FOUND 'tsx').
|
|
15
|
+
let tsxLoader = "tsx";
|
|
16
|
+
try {
|
|
17
|
+
tsxLoader = import.meta.resolve("tsx");
|
|
18
|
+
} catch {
|
|
19
|
+
// Older Node without a stable import.meta.resolve — fall back to the bare
|
|
20
|
+
// specifier (works when tsx is resolvable from the cwd or globally).
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
const result = spawnSync(
|
|
12
24
|
process.execPath,
|
|
13
|
-
["--import",
|
|
25
|
+
["--import", tsxLoader, tsEntry, ...process.argv.slice(2)],
|
|
14
26
|
{
|
|
15
27
|
stdio: "inherit",
|
|
16
28
|
cwd: process.cwd(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitpagedocs/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.49",
|
|
4
4
|
"description": "CLI that scaffolds and maintains gitpagedocs documentation, generates docs with AI, configures GitHub Pages, and runs the MCP server.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"gitpagedocs": "index.mjs"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^1.5.1",
|
|
32
|
-
"@gitpagedocs/mcp": "^1.1.
|
|
33
|
-
"@gitpagedocs/tools": "^1.1.
|
|
32
|
+
"@gitpagedocs/mcp": "^1.1.49",
|
|
33
|
+
"@gitpagedocs/tools": "^1.1.49",
|
|
34
34
|
"tsx": "^4.21.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|