chore: initialize monorepo tooling

This commit is contained in:
2026-09-18 15:00:48 +08:00
parent e28140a0b3
commit 55b2b091c2
42 changed files with 1858 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
{
"name": "@personal-brand/api-client",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
},
"dependencies": {
"@personal-brand/types": "workspace:*"
}
}

View File

@@ -0,0 +1 @@
export const apiClientName = "personal-brand-api-client";

View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,10 @@
{
"name": "@personal-brand/config",
"private": true,
"type": "module",
"scripts": {
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
}
}

View File

@@ -0,0 +1 @@
export const configPackageName = "personal-brand-config";

View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "noEmit": true },
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,17 @@
{
"name": "@personal-brand/types",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
}
}

View File

@@ -0,0 +1,4 @@
export type BookingStatus = "received" | "contacting" | "confirmed" | "completed" | "cancelled";
export type BookingRequestType = "package" | "private_chef";
export type ContactPreference = "wechat" | "phone" | "none";
export type FulfillmentType = "pickup" | "delivery";

View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
"include": ["src/**/*.ts"]
}

View File

@@ -0,0 +1,11 @@
{
"name": "@personal-brand/validation",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint .",
"typecheck": "tsc -p tsconfig.json --noEmit",
"clean": "rimraf dist"
}
}

View File

@@ -0,0 +1 @@
export const validationPackageName = "personal-brand-validation";

View File

@@ -0,0 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
"include": ["src/**/*.ts"]
}