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";

View File

@@ -1,5 +1,5 @@
{
"name": "@acme/{{ name }}",
"name": "@alparr/{{ name }}",
"private": true,
"version": "0.1.0",
"exports": {
@@ -20,16 +20,16 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@acme/eslint-config": "workspace:^0.2.0",
"@acme/prettier-config": "workspace:^0.1.0",
"@acme/tsconfig": "workspace:^0.1.0",
"@alparr/eslint-config": "workspace:^0.2.0",
"@alparr/prettier-config": "workspace:^0.1.0",
"@alparr/tsconfig": "workspace:^0.1.0",
"eslint": "^8.53.0",
"typescript": "^5.2.2"
},
"eslintConfig": {
"extends": [
"@acme/eslint-config/base"
"@alparr/eslint-config/base"
]
},
"prettier": "@acme/prettier-config"
"prettier": "@alparr/prettier-config"
}

View File

@@ -1,5 +1,5 @@
{
"extends": "@acme/tsconfig/base.json",
"extends": "@alparr/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},