mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-03 13:19:17 +01:00
chore: rename local packages from acme to alparr
This commit is contained in:
10
.github/renovate.json
vendored
10
.github/renovate.json
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"include": ["routes"]
|
||||
}
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
export { GET, POST } from "@acme/auth";
|
||||
export { GET, POST } from "@alparr/auth";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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<AppRouter>();
|
||||
|
||||
export { type RouterInputs, type RouterOutputs } from "@acme/api";
|
||||
export { type RouterInputs, type RouterOutputs } from "@alparr/api";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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!";
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.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"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
50
pnpm-lock.yaml
generated
50
pnpm-lock.yaml
generated
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"name": "@acme/github"
|
||||
}
|
||||
"name": "@alparr/github"
|
||||
}
|
||||
@@ -12,7 +12,7 @@ const config = {
|
||||
"^(next/(.*)$)|^(next$)",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"",
|
||||
"^@acme/(.*)$",
|
||||
"^@alparr/(.*)$",
|
||||
"",
|
||||
"^~/",
|
||||
"^[../]",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@acme/tsconfig",
|
||||
"name": "@alparr/tsconfig",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"files": [
|
||||
"base.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"extends": "@alparr/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user