chore: rename local packages from acme to alparr
This commit is contained in:
8
.github/renovate.json
vendored
8
.github/renovate.json
vendored
@@ -1,9 +1,13 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:base"],
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
],
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchPackagePatterns": ["^@acme/"],
|
"matchPackagePatterns": [
|
||||||
|
"^@alparr/"
|
||||||
|
],
|
||||||
"enabled": false
|
"enabled": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ tooling
|
|||||||
└─ shared tsconfig you can extend from
|
└─ 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
|
## Quick Start
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/auth-proxy",
|
"name": "@alparr/auth-proxy",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
"@auth/core": "^0.18.4"
|
"@auth/core": "^0.18.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"nitropack": "^2.8.1",
|
"nitropack": "^2.8.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
@@ -25,8 +25,8 @@
|
|||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"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"]
|
"include": ["routes"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
// Importing env files here to validate on build
|
// Importing env files here to validate on build
|
||||||
import "./src/env.mjs";
|
import "./src/env.mjs";
|
||||||
import "@acme/auth/env.mjs";
|
import "@alparr/auth/env.mjs";
|
||||||
|
|
||||||
/** @type {import("next").NextConfig} */
|
/** @type {import("next").NextConfig} */
|
||||||
const config = {
|
const config = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
/** Enables hot reloading for local packages without a build step */
|
/** 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 */
|
/** We already do linting and typechecking as separate tasks in CI */
|
||||||
eslint: { ignoreDuringBuilds: true },
|
eslint: { ignoreDuringBuilds: true },
|
||||||
typescript: { ignoreBuildErrors: true },
|
typescript: { ignoreBuildErrors: true },
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/nextjs",
|
"name": "@alparr/nextjs",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -13,9 +13,9 @@
|
|||||||
"with-env": "dotenv -e ../../.env --"
|
"with-env": "dotenv -e ../../.env --"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acme/api": "workspace:^0.1.0",
|
"@alparr/api": "workspace:^0.1.0",
|
||||||
"@acme/auth": "workspace:^0.1.0",
|
"@alparr/auth": "workspace:^0.1.0",
|
||||||
"@acme/db": "workspace:^0.1.0",
|
"@alparr/db": "workspace:^0.1.0",
|
||||||
"@mantine/core": "^7.3.1",
|
"@mantine/core": "^7.3.1",
|
||||||
"@mantine/dates": "^7.3.1",
|
"@mantine/dates": "^7.3.1",
|
||||||
"@mantine/form": "^7.3.1",
|
"@mantine/form": "^7.3.1",
|
||||||
@@ -44,9 +44,9 @@
|
|||||||
"zod": "^3.22.2"
|
"zod": "^3.22.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"@types/node": "^18.18.13",
|
"@types/node": "^18.18.13",
|
||||||
"@types/react": "^18.2.42",
|
"@types/react": "^18.2.42",
|
||||||
"@types/react-dom": "^18.2.17",
|
"@types/react-dom": "^18.2.17",
|
||||||
@@ -58,10 +58,10 @@
|
|||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"@acme/eslint-config/base",
|
"@alparr/eslint-config/base",
|
||||||
"@acme/eslint-config/nextjs",
|
"@alparr/eslint-config/nextjs",
|
||||||
"@acme/eslint-config/react"
|
"@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";
|
export const runtime = "edge";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
||||||
|
|
||||||
import { appRouter, createTRPCContext } from "@acme/api";
|
import { appRouter, createTRPCContext } from "@alparr/api";
|
||||||
import { auth } from "@acme/auth";
|
import { auth } from "@alparr/auth";
|
||||||
|
|
||||||
export const runtime = "edge";
|
export const runtime = "edge";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createTRPCReact } from "@trpc/react-query";
|
import { createTRPCReact } from "@trpc/react-query";
|
||||||
|
|
||||||
import type { AppRouter } from "@acme/api";
|
import type { AppRouter } from "@alparr/api";
|
||||||
|
|
||||||
export const api = createTRPCReact<AppRouter>();
|
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": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"typecheck": "turbo typecheck"
|
"typecheck": "turbo typecheck"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@turbo/gen": "^1.10.16",
|
"@turbo/gen": "^1.10.16",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"turbo": "^1.10.16",
|
"turbo": "^1.10.16",
|
||||||
@@ -32,5 +32,5 @@
|
|||||||
"@auth/core": "0.18.0"
|
"@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",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./index.ts",
|
"main": "./index.ts",
|
||||||
@@ -12,17 +12,17 @@
|
|||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acme/auth": "workspace:^0.1.0",
|
"@alparr/auth": "workspace:^0.1.0",
|
||||||
"@acme/db": "workspace:^0.1.0",
|
"@alparr/db": "workspace:^0.1.0",
|
||||||
"@trpc/client": "next",
|
"@trpc/client": "next",
|
||||||
"@trpc/server": "next",
|
"@trpc/server": "next",
|
||||||
"superjson": "2.2.1",
|
"superjson": "2.2.1",
|
||||||
"zod": "^3.22.2"
|
"zod": "^3.22.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
@@ -30,8 +30,8 @@
|
|||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"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;
|
return ctx.session;
|
||||||
}),
|
}),
|
||||||
getSecretMessage: protectedProcedure.query(() => {
|
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!";
|
return "you can see this secret message!";
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { desc, eq, schema } from "@acme/db";
|
import { desc, eq, schema } from "@alparr/db";
|
||||||
|
|
||||||
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";
|
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import { initTRPC, TRPCError } from "@trpc/server";
|
|||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
import { ZodError } from "zod";
|
import { ZodError } from "zod";
|
||||||
|
|
||||||
import { auth } from "@acme/auth";
|
import { auth } from "@alparr/auth";
|
||||||
import type { Session } from "@acme/auth";
|
import type { Session } from "@alparr/auth";
|
||||||
import { db } from "@acme/db";
|
import { db } from "@alparr/db";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. CONTEXT
|
* 1. CONTEXT
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "@acme/tsconfig/base.json",
|
"extends": "@alparr/tsconfig/base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { DefaultSession } from "@auth/core/types";
|
|||||||
import { DrizzleAdapter } from "@auth/drizzle-adapter";
|
import { DrizzleAdapter } from "@auth/drizzle-adapter";
|
||||||
import NextAuth from "next-auth";
|
import NextAuth from "next-auth";
|
||||||
|
|
||||||
import { db, tableCreator } from "@acme/db";
|
import { db, tableCreator } from "@alparr/db";
|
||||||
|
|
||||||
export type { Session } from "next-auth";
|
export type { Session } from "next-auth";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/auth",
|
"name": "@alparr/auth",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./index.ts",
|
"main": "./index.ts",
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acme/db": "workspace:^0.1.0",
|
"@alparr/db": "workspace:^0.1.0",
|
||||||
"@auth/core": "^0.18.4",
|
"@auth/core": "^0.18.4",
|
||||||
"@auth/drizzle-adapter": "^0.3.9",
|
"@auth/drizzle-adapter": "^0.3.9",
|
||||||
"@t3-oss/env-nextjs": "^0.7.1",
|
"@t3-oss/env-nextjs": "^0.7.1",
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
"zod": "^3.22.2"
|
"zod": "^3.22.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"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": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/db",
|
"name": "@alparr/db",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./index.ts",
|
"main": "./index.ts",
|
||||||
@@ -18,9 +18,9 @@
|
|||||||
"drizzle-orm": "^0.29.1"
|
"drizzle-orm": "^0.29.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"dotenv-cli": "^7.3.0",
|
"dotenv-cli": "^7.3.0",
|
||||||
"drizzle-kit": "^0.20.6",
|
"drizzle-kit": "^0.20.6",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
@@ -30,8 +30,8 @@
|
|||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"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": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
50
pnpm-lock.yaml
generated
50
pnpm-lock.yaml
generated
@@ -11,7 +11,7 @@ importers:
|
|||||||
|
|
||||||
.:
|
.:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:tooling/prettier
|
version: link:tooling/prettier
|
||||||
'@turbo/gen':
|
'@turbo/gen':
|
||||||
@@ -33,13 +33,13 @@ importers:
|
|||||||
specifier: 0.18.0
|
specifier: 0.18.0
|
||||||
version: 0.18.0
|
version: 0.18.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/eslint-config':
|
'@alparr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
version: link:../../tooling/eslint
|
version: link:../../tooling/eslint
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/prettier
|
version: link:../../tooling/prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/typescript
|
version: link:../../tooling/typescript
|
||||||
eslint:
|
eslint:
|
||||||
@@ -57,13 +57,13 @@ importers:
|
|||||||
|
|
||||||
apps/nextjs:
|
apps/nextjs:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@acme/api':
|
'@alparr/api':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../packages/api
|
version: link:../../packages/api
|
||||||
'@acme/auth':
|
'@alparr/auth':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../packages/auth
|
version: link:../../packages/auth
|
||||||
'@acme/db':
|
'@alparr/db':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../packages/db
|
version: link:../../packages/db
|
||||||
'@mantine/core':
|
'@mantine/core':
|
||||||
@@ -145,13 +145,13 @@ importers:
|
|||||||
specifier: ^3.22.2
|
specifier: ^3.22.2
|
||||||
version: 3.22.2
|
version: 3.22.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/eslint-config':
|
'@alparr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
version: link:../../tooling/eslint
|
version: link:../../tooling/eslint
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/prettier
|
version: link:../../tooling/prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/typescript
|
version: link:../../tooling/typescript
|
||||||
'@types/node':
|
'@types/node':
|
||||||
@@ -178,10 +178,10 @@ importers:
|
|||||||
|
|
||||||
packages/api:
|
packages/api:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@acme/auth':
|
'@alparr/auth':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../auth
|
version: link:../auth
|
||||||
'@acme/db':
|
'@alparr/db':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../db
|
version: link:../db
|
||||||
'@trpc/client':
|
'@trpc/client':
|
||||||
@@ -197,13 +197,13 @@ importers:
|
|||||||
specifier: ^3.22.2
|
specifier: ^3.22.2
|
||||||
version: 3.22.2
|
version: 3.22.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/eslint-config':
|
'@alparr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
version: link:../../tooling/eslint
|
version: link:../../tooling/eslint
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/prettier
|
version: link:../../tooling/prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/typescript
|
version: link:../../tooling/typescript
|
||||||
eslint:
|
eslint:
|
||||||
@@ -218,7 +218,7 @@ importers:
|
|||||||
|
|
||||||
packages/auth:
|
packages/auth:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@acme/db':
|
'@alparr/db':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../db
|
version: link:../db
|
||||||
'@auth/core':
|
'@auth/core':
|
||||||
@@ -246,13 +246,13 @@ importers:
|
|||||||
specifier: ^3.22.2
|
specifier: ^3.22.2
|
||||||
version: 3.22.2
|
version: 3.22.2
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/eslint-config':
|
'@alparr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
version: link:../../tooling/eslint
|
version: link:../../tooling/eslint
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/prettier
|
version: link:../../tooling/prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/typescript
|
version: link:../../tooling/typescript
|
||||||
eslint:
|
eslint:
|
||||||
@@ -274,13 +274,13 @@ importers:
|
|||||||
specifier: ^0.29.1
|
specifier: ^0.29.1
|
||||||
version: 0.29.1(@planetscale/database@1.11.0)
|
version: 0.29.1(@planetscale/database@1.11.0)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/eslint-config':
|
'@alparr/eslint-config':
|
||||||
specifier: workspace:^0.2.0
|
specifier: workspace:^0.2.0
|
||||||
version: link:../../tooling/eslint
|
version: link:../../tooling/eslint
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/prettier
|
version: link:../../tooling/prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../../tooling/typescript
|
version: link:../../tooling/typescript
|
||||||
dotenv-cli:
|
dotenv-cli:
|
||||||
@@ -329,10 +329,10 @@ importers:
|
|||||||
specifier: ^4.6.0
|
specifier: ^4.6.0
|
||||||
version: 4.6.0(eslint@8.53.0)
|
version: 4.6.0(eslint@8.53.0)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/prettier-config':
|
'@alparr/prettier-config':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../prettier
|
version: link:../prettier
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../typescript
|
version: link:../typescript
|
||||||
'@types/eslint':
|
'@types/eslint':
|
||||||
@@ -356,7 +356,7 @@ importers:
|
|||||||
specifier: ^3.1.0
|
specifier: ^3.1.0
|
||||||
version: 3.1.0
|
version: 3.1.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@acme/tsconfig':
|
'@alparr/tsconfig':
|
||||||
specifier: workspace:^0.1.0
|
specifier: workspace:^0.1.0
|
||||||
version: link:../typescript
|
version: link:../typescript
|
||||||
typescript:
|
typescript:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/eslint-config",
|
"name": "@alparr/eslint-config",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/eslint": "^8.44.7",
|
"@types/eslint": "^8.44.7",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
@@ -38,5 +38,5 @@
|
|||||||
"./base.js"
|
"./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": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/github"
|
"name": "@alparr/github"
|
||||||
}
|
}
|
||||||
@@ -12,7 +12,7 @@ const config = {
|
|||||||
"^(next/(.*)$)|^(next$)",
|
"^(next/(.*)$)|^(next$)",
|
||||||
"<THIRD_PARTY_MODULES>",
|
"<THIRD_PARTY_MODULES>",
|
||||||
"",
|
"",
|
||||||
"^@acme/(.*)$",
|
"^@alparr/(.*)$",
|
||||||
"",
|
"",
|
||||||
"^~/",
|
"^~/",
|
||||||
"^[../]",
|
"^[../]",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/prettier-config",
|
"name": "@alparr/prettier-config",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"prettier": "^3.1.0"
|
"prettier": "^3.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"typescript": "^5.3.3"
|
"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": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/tsconfig",
|
"name": "@alparr/tsconfig",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ interface PackageJson {
|
|||||||
|
|
||||||
export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
||||||
plop.setGenerator("init", {
|
plop.setGenerator("init", {
|
||||||
description: "Generate a new package for the Acme Monorepo",
|
description: "Generate a new package for the alparr Monorepo",
|
||||||
prompts: [
|
prompts: [
|
||||||
{
|
{
|
||||||
type: "input",
|
type: "input",
|
||||||
name: "name",
|
name: "name",
|
||||||
message:
|
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",
|
type: "input",
|
||||||
@@ -28,8 +28,8 @@ export default function generator(plop: PlopTypes.NodePlopAPI): void {
|
|||||||
actions: [
|
actions: [
|
||||||
(answers) => {
|
(answers) => {
|
||||||
if ("name" in answers && typeof answers.name === "string") {
|
if ("name" in answers && typeof answers.name === "string") {
|
||||||
if (answers.name.startsWith("@acme/")) {
|
if (answers.name.startsWith("@alparr/")) {
|
||||||
answers.name = answers.name.replace("@acme/", "");
|
answers.name = answers.name.replace("@alparr/", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "Config sanitized";
|
return "Config sanitized";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@acme/{{ name }}",
|
"name": "@alparr/{{ name }}",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"exports": {
|
"exports": {
|
||||||
@@ -20,16 +20,16 @@
|
|||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acme/eslint-config": "workspace:^0.2.0",
|
"@alparr/eslint-config": "workspace:^0.2.0",
|
||||||
"@acme/prettier-config": "workspace:^0.1.0",
|
"@alparr/prettier-config": "workspace:^0.1.0",
|
||||||
"@acme/tsconfig": "workspace:^0.1.0",
|
"@alparr/tsconfig": "workspace:^0.1.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"typescript": "^5.2.2"
|
"typescript": "^5.2.2"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"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": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user