chore: rename local packages from acme to alparr

This commit is contained in:
Meier Lukas
2023-12-08 23:13:46 +01:00
parent d115779c85
commit 9ea96899b1
32 changed files with 120 additions and 116 deletions

View File

@@ -10,13 +10,13 @@ interface PackageJson {
export default function generator(plop: PlopTypes.NodePlopAPI): void {
plop.setGenerator("init", {
description: "Generate a new package for the Acme Monorepo",
description: "Generate a new package for the alparr Monorepo",
prompts: [
{
type: "input",
name: "name",
message:
"What is the name of the package? (You can skip the `@acme/` prefix)",
"What is the name of the package? (You can skip the `@alparr/` prefix)",
},
{
type: "input",
@@ -28,8 +28,8 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void {
actions: [
(answers) => {
if ("name" in answers && typeof answers.name === "string") {
if (answers.name.startsWith("@acme/")) {
answers.name = answers.name.replace("@acme/", "");
if (answers.name.startsWith("@alparr/")) {
answers.name = answers.name.replace("@alparr/", "");
}
}
return "Config sanitized";