We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4afdfff commit 7de4730Copy full SHA for 7de4730
1 file changed
scripts/src/create-handbook.ts
@@ -37,10 +37,11 @@ try {
37
// 1. Copy template to new site
38
fs.copySync(TEMPLATE_DIR, targetDir);
39
40
- // 2. Update package.json with the new site name
+ // 2. Update package.json with the new site name and correct copy-static script
41
const packageJsonPath = path.join(targetDir, "package.json");
42
const packageJson = fs.readJsonSync(packageJsonPath);
43
packageJson.name = `${siteName}`;
44
+ packageJson.scripts["copy-static"] = `pnpm --filter scripts copy-static sites/${siteName}/static/common`;
45
fs.writeJsonSync(packageJsonPath, packageJson, { spaces: 2 });
46
47
console.log(`✅ Created new handbook site: ${siteName}`);
0 commit comments