From a553b538a5a2dac4d655fabefd1058d1c44f1c81 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sat, 9 May 2026 15:09:08 +0800 Subject: [PATCH] chore: initialize pnpm workspace + Turbo config --- .nvmrc | 1 + package.json | 20 ++++++++++++++++++++ pnpm-workspace.yaml | 3 +++ tsconfig.base.json | 20 ++++++++++++++++++++ turbo.json | 21 +++++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 .nvmrc create mode 100644 package.json create mode 100644 pnpm-workspace.yaml create mode 100644 tsconfig.base.json create mode 100644 turbo.json diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/package.json b/package.json new file mode 100644 index 0000000..a016ed5 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "cm-whatsapp-bot", + "version": "0.1.0", + "private": true, + "packageManager": "pnpm@9.12.0", + "engines": { + "node": ">=22" + }, + "scripts": { + "build": "turbo run build", + "dev": "turbo run dev --parallel", + "test": "turbo run test", + "lint": "turbo run lint", + "typecheck": "turbo run typecheck" + }, + "devDependencies": { + "turbo": "^2.1.0", + "typescript": "^5.5.0" + } +} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..3ff5faa --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +packages: + - "apps/*" + - "packages/*" diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..f45e1bd --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "lib": ["ES2022"], + "strict": true, + "noUncheckedIndexedAccess": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "isolatedModules": true, + "verbatimModuleSyntax": true + }, + "exclude": ["node_modules", "dist", ".next", ".turbo"] +} diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..6f7214c --- /dev/null +++ b/turbo.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://turbo.build/schema.json", + "tasks": { + "build": { + "dependsOn": ["^build"], + "outputs": ["dist/**", ".next/**", "!.next/cache/**"] + }, + "dev": { + "cache": false, + "persistent": true + }, + "test": { + "dependsOn": ["^build"], + "outputs": ["coverage/**"] + }, + "lint": {}, + "typecheck": { + "dependsOn": ["^build"] + } + } +}