create-thally-docs 0.7.0 → 0.7.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/LICENSE
CHANGED
|
@@ -17,7 +17,9 @@ var EXCLUDE_PATHS = [
|
|
|
17
17
|
"/.git/",
|
|
18
18
|
"/thally-agent.yml",
|
|
19
19
|
"/thally-track.yml",
|
|
20
|
-
"/CODEOWNERS"
|
|
20
|
+
"/CODEOWNERS",
|
|
21
|
+
"/CLAUDE.md",
|
|
22
|
+
"/notes/"
|
|
21
23
|
];
|
|
22
24
|
function shouldInclude(path) {
|
|
23
25
|
for (const excluded of EXCLUDE_PATHS) {
|
|
@@ -71,7 +73,7 @@ function writeTrackingConfig(projectDir, repos) {
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
// src/customize.ts
|
|
74
|
-
import { existsSync, mkdirSync, writeFileSync as writeFileSync2, readFileSync as readFileSync2, readdirSync, cpSync } from "fs";
|
|
76
|
+
import { existsSync, mkdirSync, writeFileSync as writeFileSync2, readFileSync as readFileSync2, readdirSync, cpSync, rmSync } from "fs";
|
|
75
77
|
import { join as join2 } from "path";
|
|
76
78
|
import { execSync } from "child_process";
|
|
77
79
|
var STARTER_PAGES = {
|
|
@@ -318,6 +320,22 @@ function updateEnvExample(targetDir) {
|
|
|
318
320
|
}
|
|
319
321
|
}
|
|
320
322
|
}
|
|
323
|
+
function patchPackageJson(targetDir, slug) {
|
|
324
|
+
const pkgPath = join2(targetDir, "package.json");
|
|
325
|
+
if (!existsSync(pkgPath)) return;
|
|
326
|
+
const pkg = JSON.parse(readFileSync2(pkgPath, "utf8"));
|
|
327
|
+
pkg.name = slug;
|
|
328
|
+
delete pkg.workspaces;
|
|
329
|
+
if (pkg.scripts) {
|
|
330
|
+
if (pkg.scripts["prebuild"]) pkg.scripts["prebuild"] = "npm run embeddings:build";
|
|
331
|
+
delete pkg.scripts["pretest"];
|
|
332
|
+
delete pkg.scripts["packages:build"];
|
|
333
|
+
}
|
|
334
|
+
writeFileSync2(pkgPath, `${JSON.stringify(pkg, null, 2)}
|
|
335
|
+
`, "utf8");
|
|
336
|
+
const lockPath = join2(targetDir, "package-lock.json");
|
|
337
|
+
if (existsSync(lockPath)) rmSync(lockPath);
|
|
338
|
+
}
|
|
321
339
|
|
|
322
340
|
// src/utils.ts
|
|
323
341
|
import { execSync as execSync2 } from "child_process";
|
|
@@ -415,6 +433,7 @@ async function scaffold(options) {
|
|
|
415
433
|
patchApiReferenceGuard(targetDir);
|
|
416
434
|
patchTopBarNavigation(targetDir);
|
|
417
435
|
patchOpenApiFetch(targetDir);
|
|
436
|
+
patchPackageJson(targetDir, slug);
|
|
418
437
|
updateEnvExample(targetDir);
|
|
419
438
|
if (doInstall) {
|
|
420
439
|
installDeps(targetDir);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
initGit,
|
|
4
4
|
installDeps,
|
|
5
5
|
scaffold
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6HO6ECUE.js";
|
|
7
7
|
|
|
8
8
|
// src/migrate/index.ts
|
|
9
9
|
import { mkdirSync as mkdirSync2, copyFileSync as copyFileSync2, readFileSync as readFileSync3, writeFileSync, existsSync as existsSync3, mkdtempSync, rmSync } from "fs";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
migrateDocs,
|
|
4
4
|
parseGitHubUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YAG5BZEM.js";
|
|
6
6
|
import {
|
|
7
7
|
logo,
|
|
8
8
|
readDocsJson,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
slugify,
|
|
11
11
|
success,
|
|
12
12
|
writeDocsJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6HO6ECUE.js";
|
|
14
14
|
|
|
15
15
|
// src/index.ts
|
|
16
16
|
import { existsSync as existsSync3, readdirSync as readdirSync2 } from "fs";
|
package/dist/migrate/index.js
CHANGED
package/dist/scaffold.js
CHANGED