Skip to content

Commit 9c00573

Browse files
committed
Fix rebrand scripts
1 parent 91974bd commit 9c00573

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

scripts/rebrand.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ const rebrandFn = async () => {
2929
// if .tkb is not moved - setup workflow was not triggered or could not create the required commit
3030
if (fs.existsSync(path.resolve(process.cwd(), "scripts", ".tkb"))) {
3131
`rm .tkb
32-
mv ./scripts/.tkb ./.tkb
33-
rm -rf ./docs`
32+
mv ./scripts/.tkb ./.tkb
33+
rm -rf ./docs
34+
sed -i '/.turborepo-template.lst/d' .github/workflows/upgrade.yml
35+
sed -i '/.turborepo-template.lst/d' .github/workflows/docs.yml`
3436
.split("\n")
3537
.forEach(cmd => execSync(cmd.trim()));
3638
}
@@ -180,12 +182,11 @@ const rebrandFn = async () => {
180182
if (feats.includes("Docs")) {
181183
delete rootPackageJSON.scripts.doc;
182184
delete rootPackageJSON.devDependencies["typedoc"];
183-
delete rootPackageJSON.devDependencies["typedoc-plugin-missing-exports"];
184-
delete rootPackageJSON.devDependencies["typedoc-plugin-rename-defaults"];
185-
delete rootPackageJSON.devDependencies["typedoc-plugin-inline-sources"];
186-
delete rootPackageJSON.devDependencies["typedoc-plugin-mdn-links"];
187-
delete rootPackageJSON.devDependencies["typedoc-plugin-extras"];
188-
delete rootPackageJSON.devDependencies["typedoc-plugin-zod"];
185+
Object.keys(rootPackageJSON.devDependencies).forEach(dep => {
186+
if (dep.startsWith("typedoc-plugin-")) {
187+
delete rootPackageJSON.devDependencies[dep];
188+
}
189+
});
189190
[
190191
".github/workflows/docs.yml",
191192
"./docs",

scripts/rebrander.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ updatePublishFlow("publish.yml");
135135
updatePublishFlow("manual-publish.yml");
136136

137137
try {
138-
fs.unlinkSync(path.resolve(workflowsPath, "setup.yml"));
138+
fs.rmSync(path.resolve(workflowsPath, "setup.yml"));
139139
} catch {
140140
// empty
141141
}

0 commit comments

Comments
 (0)