diff --git a/.github/renovate.json b/.github/renovate.json index 77555b19e..7ff59ab2a 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,13 +1,17 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base"], + "extends": [ + "config:base" + ], "packageRules": [ { - "matchPackagePatterns": ["^@acme/"], + "matchPackagePatterns": [ + "^@alparr/" + ], "enabled": false } ], "updateInternalDeps": true, "rangeStrategy": "bump", "automerge": true -} +} \ No newline at end of file diff --git a/README.md b/README.md index 46bac53b2..dbff81bbf 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ tooling └─ shared tsconfig you can extend from ``` -> In this template, we use `@acme` as a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of `@acme` to something like `@my-company` or `@project-name`. +> In this template, we use `@alparr` as a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of `@alparr` to something like `@my-company` or `@project-name`. ## Quick Start diff --git a/apps/auth-proxy/package.json b/apps/auth-proxy/package.json index ec9d9202b..72010a3bd 100644 --- a/apps/auth-proxy/package.json +++ b/apps/auth-proxy/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/auth-proxy", + "name": "@alparr/auth-proxy", "private": true, "type": "module", "scripts": { @@ -14,9 +14,9 @@ "@auth/core": "^0.18.4" }, "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", "nitropack": "^2.8.1", "prettier": "^3.1.0", @@ -25,8 +25,8 @@ "eslintConfig": { "root": true, "extends": [ - "@acme/eslint-config/base" + "@alparr/eslint-config/base" ] }, - "prettier": "@acme/prettier-config" + "prettier": "@alparr/prettier-config" } \ No newline at end of file diff --git a/apps/auth-proxy/tsconfig.json b/apps/auth-proxy/tsconfig.json index a2aaadcdc..4fbe1dc05 100644 --- a/apps/auth-proxy/tsconfig.json +++ b/apps/auth-proxy/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "include": ["routes"] } diff --git a/apps/nextjs/next.config.mjs b/apps/nextjs/next.config.mjs index 3b48a7143..97bea3aee 100644 --- a/apps/nextjs/next.config.mjs +++ b/apps/nextjs/next.config.mjs @@ -1,12 +1,12 @@ // Importing env files here to validate on build import "./src/env.mjs"; -import "@acme/auth/env.mjs"; +import "@alparr/auth/env.mjs"; /** @type {import("next").NextConfig} */ const config = { reactStrictMode: true, /** Enables hot reloading for local packages without a build step */ - transpilePackages: ["@acme/api", "@acme/auth", "@acme/db"], + transpilePackages: ["@alparr/api", "@alparr/auth", "@alparr/db"], /** We already do linting and typechecking as separate tasks in CI */ eslint: { ignoreDuringBuilds: true }, typescript: { ignoreBuildErrors: true }, diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json index 241f22bef..f5a353a92 100644 --- a/apps/nextjs/package.json +++ b/apps/nextjs/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/nextjs", + "name": "@alparr/nextjs", "version": "0.1.0", "private": true, "scripts": { @@ -13,9 +13,9 @@ "with-env": "dotenv -e ../../.env --" }, "dependencies": { - "@acme/api": "workspace:^0.1.0", - "@acme/auth": "workspace:^0.1.0", - "@acme/db": "workspace:^0.1.0", + "@alparr/api": "workspace:^0.1.0", + "@alparr/auth": "workspace:^0.1.0", + "@alparr/db": "workspace:^0.1.0", "@mantine/core": "^7.3.1", "@mantine/dates": "^7.3.1", "@mantine/form": "^7.3.1", @@ -44,9 +44,9 @@ "zod": "^3.22.2" }, "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", "@types/node": "^18.18.13", "@types/react": "^18.2.42", "@types/react-dom": "^18.2.17", @@ -58,10 +58,10 @@ "eslintConfig": { "root": true, "extends": [ - "@acme/eslint-config/base", - "@acme/eslint-config/nextjs", - "@acme/eslint-config/react" + "@alparr/eslint-config/base", + "@alparr/eslint-config/nextjs", + "@alparr/eslint-config/react" ] }, - "prettier": "@acme/prettier-config" + "prettier": "@alparr/prettier-config" } \ No newline at end of file diff --git a/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts b/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts index 16c8300c3..611495bdc 100644 --- a/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts +++ b/apps/nextjs/src/app/api/auth/[...nextauth]/route.ts @@ -1,3 +1,3 @@ -export { GET, POST } from "@acme/auth"; +export { GET, POST } from "@alparr/auth"; export const runtime = "edge"; diff --git a/apps/nextjs/src/app/api/trpc/[trpc]/route.ts b/apps/nextjs/src/app/api/trpc/[trpc]/route.ts index 4700b1cc4..bf46685f1 100644 --- a/apps/nextjs/src/app/api/trpc/[trpc]/route.ts +++ b/apps/nextjs/src/app/api/trpc/[trpc]/route.ts @@ -1,7 +1,7 @@ import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; -import { appRouter, createTRPCContext } from "@acme/api"; -import { auth } from "@acme/auth"; +import { appRouter, createTRPCContext } from "@alparr/api"; +import { auth } from "@alparr/auth"; export const runtime = "edge"; diff --git a/apps/nextjs/src/utils/api.ts b/apps/nextjs/src/utils/api.ts index 4a230f6ef..317101f8f 100644 --- a/apps/nextjs/src/utils/api.ts +++ b/apps/nextjs/src/utils/api.ts @@ -1,7 +1,7 @@ import { createTRPCReact } from "@trpc/react-query"; -import type { AppRouter } from "@acme/api"; +import type { AppRouter } from "@alparr/api"; export const api = createTRPCReact(); -export { type RouterInputs, type RouterOutputs } from "@acme/api"; +export { type RouterInputs, type RouterOutputs } from "@alparr/api"; diff --git a/apps/nextjs/tsconfig.json b/apps/nextjs/tsconfig.json index 544e74b76..43b05b346 100644 --- a/apps/nextjs/tsconfig.json +++ b/apps/nextjs/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "baseUrl": ".", "paths": { diff --git a/package.json b/package.json index 6ad9291fa..dad75860c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "typecheck": "turbo typecheck" }, "devDependencies": { - "@acme/prettier-config": "workspace:^0.1.0", + "@alparr/prettier-config": "workspace:^0.1.0", "@turbo/gen": "^1.10.16", "prettier": "^3.1.0", "turbo": "^1.10.16", @@ -32,5 +32,5 @@ "@auth/core": "0.18.0" } }, - "prettier": "@acme/prettier-config" + "prettier": "@alparr/prettier-config" } \ No newline at end of file diff --git a/packages/api/package.json b/packages/api/package.json index 1dbab597c..4baba43d2 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/api", + "name": "@alparr/api", "version": "0.1.0", "private": true, "main": "./index.ts", @@ -12,17 +12,17 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@acme/auth": "workspace:^0.1.0", - "@acme/db": "workspace:^0.1.0", + "@alparr/auth": "workspace:^0.1.0", + "@alparr/db": "workspace:^0.1.0", "@trpc/client": "next", "@trpc/server": "next", "superjson": "2.2.1", "zod": "^3.22.2" }, "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", "prettier": "^3.1.0", "typescript": "^5.3.3" @@ -30,8 +30,8 @@ "eslintConfig": { "root": true, "extends": [ - "@acme/eslint-config/base" + "@alparr/eslint-config/base" ] }, - "prettier": "@acme/prettier-config" -} + "prettier": "@alparr/prettier-config" +} \ No newline at end of file diff --git a/packages/api/src/router/auth.ts b/packages/api/src/router/auth.ts index 105b4eae1..82d9b11a7 100644 --- a/packages/api/src/router/auth.ts +++ b/packages/api/src/router/auth.ts @@ -5,7 +5,7 @@ export const authRouter = createTRPCRouter({ return ctx.session; }), getSecretMessage: protectedProcedure.query(() => { - // testing type validation of overridden next-auth Session in @acme/auth package + // testing type validation of overridden next-auth Session in @alparr/auth package return "you can see this secret message!"; }), }); diff --git a/packages/api/src/router/post.ts b/packages/api/src/router/post.ts index af04d6b5c..298d513b9 100644 --- a/packages/api/src/router/post.ts +++ b/packages/api/src/router/post.ts @@ -1,6 +1,6 @@ import { z } from "zod"; -import { desc, eq, schema } from "@acme/db"; +import { desc, eq, schema } from "@alparr/db"; import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc"; diff --git a/packages/api/src/trpc.ts b/packages/api/src/trpc.ts index 8f1d72955..e51c8a288 100644 --- a/packages/api/src/trpc.ts +++ b/packages/api/src/trpc.ts @@ -10,9 +10,9 @@ import { initTRPC, TRPCError } from "@trpc/server"; import superjson from "superjson"; import { ZodError } from "zod"; -import { auth } from "@acme/auth"; -import type { Session } from "@acme/auth"; -import { db } from "@acme/db"; +import { auth } from "@alparr/auth"; +import type { Session } from "@alparr/auth"; +import { db } from "@alparr/db"; /** * 1. CONTEXT diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index f9a3fa3e3..24031a8db 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, diff --git a/packages/auth/index.ts b/packages/auth/index.ts index d2516252c..04c788486 100644 --- a/packages/auth/index.ts +++ b/packages/auth/index.ts @@ -6,7 +6,7 @@ import type { DefaultSession } from "@auth/core/types"; import { DrizzleAdapter } from "@auth/drizzle-adapter"; import NextAuth from "next-auth"; -import { db, tableCreator } from "@acme/db"; +import { db, tableCreator } from "@alparr/db"; export type { Session } from "next-auth"; diff --git a/packages/auth/package.json b/packages/auth/package.json index 1200cc7ed..b4a5513fb 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/auth", + "name": "@alparr/auth", "version": "0.1.0", "private": true, "main": "./index.ts", @@ -12,7 +12,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@acme/db": "workspace:^0.1.0", + "@alparr/db": "workspace:^0.1.0", "@auth/core": "^0.18.4", "@auth/drizzle-adapter": "^0.3.9", "@t3-oss/env-nextjs": "^0.7.1", @@ -23,9 +23,9 @@ "zod": "^3.22.2" }, "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", "prettier": "^3.1.0", "typescript": "^5.3.3" @@ -33,8 +33,8 @@ "eslintConfig": { "root": true, "extends": [ - "@acme/eslint-config/base" + "@alparr/eslint-config/base" ] }, - "prettier": "@acme/prettier-config" -} + "prettier": "@alparr/prettier-config" +} \ No newline at end of file diff --git a/packages/auth/tsconfig.json b/packages/auth/tsconfig.json index f9a3fa3e3..24031a8db 100644 --- a/packages/auth/tsconfig.json +++ b/packages/auth/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, diff --git a/packages/db/package.json b/packages/db/package.json index 51458cb6c..075c6629b 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/db", + "name": "@alparr/db", "version": "0.1.0", "private": true, "main": "./index.ts", @@ -18,9 +18,9 @@ "drizzle-orm": "^0.29.1" }, "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", "dotenv-cli": "^7.3.0", "drizzle-kit": "^0.20.6", "eslint": "^8.53.0", @@ -30,8 +30,8 @@ "eslintConfig": { "root": true, "extends": [ - "@acme/eslint-config/base" + "@alparr/eslint-config/base" ] }, - "prettier": "@acme/prettier-config" -} + "prettier": "@alparr/prettier-config" +} \ No newline at end of file diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index f9a3fa3e3..24031a8db 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c4e2e31f8..b7041a981 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,7 +11,7 @@ importers: .: devDependencies: - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:tooling/prettier '@turbo/gen': @@ -33,13 +33,13 @@ importers: specifier: 0.18.0 version: 0.18.0 devDependencies: - '@acme/eslint-config': + '@alparr/eslint-config': specifier: workspace:^0.2.0 version: link:../../tooling/eslint - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../../tooling/prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../../tooling/typescript eslint: @@ -57,13 +57,13 @@ importers: apps/nextjs: dependencies: - '@acme/api': + '@alparr/api': specifier: workspace:^0.1.0 version: link:../../packages/api - '@acme/auth': + '@alparr/auth': specifier: workspace:^0.1.0 version: link:../../packages/auth - '@acme/db': + '@alparr/db': specifier: workspace:^0.1.0 version: link:../../packages/db '@mantine/core': @@ -145,13 +145,13 @@ importers: specifier: ^3.22.2 version: 3.22.2 devDependencies: - '@acme/eslint-config': + '@alparr/eslint-config': specifier: workspace:^0.2.0 version: link:../../tooling/eslint - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../../tooling/prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../../tooling/typescript '@types/node': @@ -178,10 +178,10 @@ importers: packages/api: dependencies: - '@acme/auth': + '@alparr/auth': specifier: workspace:^0.1.0 version: link:../auth - '@acme/db': + '@alparr/db': specifier: workspace:^0.1.0 version: link:../db '@trpc/client': @@ -197,13 +197,13 @@ importers: specifier: ^3.22.2 version: 3.22.2 devDependencies: - '@acme/eslint-config': + '@alparr/eslint-config': specifier: workspace:^0.2.0 version: link:../../tooling/eslint - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../../tooling/prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../../tooling/typescript eslint: @@ -218,7 +218,7 @@ importers: packages/auth: dependencies: - '@acme/db': + '@alparr/db': specifier: workspace:^0.1.0 version: link:../db '@auth/core': @@ -246,13 +246,13 @@ importers: specifier: ^3.22.2 version: 3.22.2 devDependencies: - '@acme/eslint-config': + '@alparr/eslint-config': specifier: workspace:^0.2.0 version: link:../../tooling/eslint - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../../tooling/prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../../tooling/typescript eslint: @@ -274,13 +274,13 @@ importers: specifier: ^0.29.1 version: 0.29.1(@planetscale/database@1.11.0) devDependencies: - '@acme/eslint-config': + '@alparr/eslint-config': specifier: workspace:^0.2.0 version: link:../../tooling/eslint - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../../tooling/prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../../tooling/typescript dotenv-cli: @@ -329,10 +329,10 @@ importers: specifier: ^4.6.0 version: 4.6.0(eslint@8.53.0) devDependencies: - '@acme/prettier-config': + '@alparr/prettier-config': specifier: workspace:^0.1.0 version: link:../prettier - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../typescript '@types/eslint': @@ -356,7 +356,7 @@ importers: specifier: ^3.1.0 version: 3.1.0 devDependencies: - '@acme/tsconfig': + '@alparr/tsconfig': specifier: workspace:^0.1.0 version: link:../typescript typescript: diff --git a/tooling/eslint/package.json b/tooling/eslint/package.json index f4f49d821..692bdd702 100644 --- a/tooling/eslint/package.json +++ b/tooling/eslint/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/eslint-config", + "name": "@alparr/eslint-config", "version": "0.2.0", "private": true, "license": "MIT", @@ -27,8 +27,8 @@ }, "devDependencies": { "@types/eslint": "^8.44.7", - "@acme/prettier-config": "workspace:^0.1.0", - "@acme/tsconfig": "workspace:^0.1.0", + "@alparr/prettier-config": "workspace:^0.1.0", + "@alparr/tsconfig": "workspace:^0.1.0", "eslint": "^8.53.0", "typescript": "^5.3.3" }, @@ -38,5 +38,5 @@ "./base.js" ] }, - "prettier": "@acme/prettier-config" -} + "prettier": "@alparr/prettier-config" +} \ No newline at end of file diff --git a/tooling/eslint/tsconfig.json b/tooling/eslint/tsconfig.json index f9a3fa3e3..24031a8db 100644 --- a/tooling/eslint/tsconfig.json +++ b/tooling/eslint/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, diff --git a/tooling/github/package.json b/tooling/github/package.json index 54217d671..cfbb74af7 100644 --- a/tooling/github/package.json +++ b/tooling/github/package.json @@ -1,3 +1,3 @@ { - "name": "@acme/github" -} + "name": "@alparr/github" +} \ No newline at end of file diff --git a/tooling/prettier/index.mjs b/tooling/prettier/index.mjs index fd3d93bd6..ec54262e9 100644 --- a/tooling/prettier/index.mjs +++ b/tooling/prettier/index.mjs @@ -12,7 +12,7 @@ const config = { "^(next/(.*)$)|^(next$)", "", "", - "^@acme/(.*)$", + "^@alparr/(.*)$", "", "^~/", "^[../]", diff --git a/tooling/prettier/package.json b/tooling/prettier/package.json index 917199e2d..7d83e319c 100644 --- a/tooling/prettier/package.json +++ b/tooling/prettier/package.json @@ -1,5 +1,5 @@ { - "name": "@acme/prettier-config", + "name": "@alparr/prettier-config", "private": true, "version": "0.1.0", "main": "index.mjs", @@ -13,8 +13,8 @@ "prettier": "^3.1.0" }, "devDependencies": { - "@acme/tsconfig": "workspace:^0.1.0", + "@alparr/tsconfig": "workspace:^0.1.0", "typescript": "^5.3.3" }, - "prettier": "@acme/prettier-config" + "prettier": "@alparr/prettier-config" } \ No newline at end of file diff --git a/tooling/prettier/tsconfig.json b/tooling/prettier/tsconfig.json index f9a3fa3e3..24031a8db 100644 --- a/tooling/prettier/tsconfig.json +++ b/tooling/prettier/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" }, diff --git a/tooling/typescript/package.json b/tooling/typescript/package.json index 7efc27897..9bdcd6fdf 100644 --- a/tooling/typescript/package.json +++ b/tooling/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@acme/tsconfig", + "name": "@alparr/tsconfig", "private": true, "version": "0.1.0", "files": [ "base.json" ] -} +} \ No newline at end of file diff --git a/turbo/generators/config.ts b/turbo/generators/config.ts index ee2a1ec12..99eaeebf4 100644 --- a/turbo/generators/config.ts +++ b/turbo/generators/config.ts @@ -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"; diff --git a/turbo/generators/templates/package.json.hbs b/turbo/generators/templates/package.json.hbs index 14a8ba73b..fe923b2ed 100644 --- a/turbo/generators/templates/package.json.hbs +++ b/turbo/generators/templates/package.json.hbs @@ -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" } diff --git a/turbo/generators/templates/tsconfig.json.hbs b/turbo/generators/templates/tsconfig.json.hbs index 7a26a270d..5d2933359 100644 --- a/turbo/generators/templates/tsconfig.json.hbs +++ b/turbo/generators/templates/tsconfig.json.hbs @@ -1,5 +1,5 @@ { - "extends": "@acme/tsconfig/base.json", + "extends": "@alparr/tsconfig/base.json", "compilerOptions": { "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" },