diff --git a/.gitignore b/.gitignore index ae2c063..40c8146 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ dist .docusaurus build coverage +.tsbuildinfo packages/*/dist apps/*/dist apps/docs/.docusaurus diff --git a/README.md b/README.md index 4047441..6ad52ec 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,13 @@ pnpm start --- +## Build Caching +- Incremental builds are enabled by default +- First build is slower; subsequent builds reuse cached data +- Clean builds: `pnpm build:clean` + +--- + ## Type Checking & Linting - Type check all packages and apps: `pnpm typecheck` diff --git a/apps/access-api/tsconfig.json b/apps/access-api/tsconfig.json index 85b7beb..8954789 100644 --- a/apps/access-api/tsconfig.json +++ b/apps/access-api/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "rootDir": ".", "outDir": "dist", - "composite": false, + "composite": true, "baseUrl": ".", "paths": { "@/*": ["./src/*"] diff --git a/apps/dashboard/tsconfig.json b/apps/dashboard/tsconfig.json index 3522473..fbbe2c7 100644 --- a/apps/dashboard/tsconfig.json +++ b/apps/dashboard/tsconfig.json @@ -31,4 +31,4 @@ }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] -} \ No newline at end of file +} diff --git a/package.json b/package.json index 33c4e9f..b60fb8e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ ], "scripts": { "dev": "pnpm --filter @guildpass/dashboard dev", - "build": "pnpm --filter @guildpass/dashboard build", + "build": "tsc -b", + "build:clean": "rm -rf dist .tsbuildinfo && tsc -b", "start": "pnpm --filter @guildpass/dashboard start", "typecheck": "pnpm -r typecheck", "lint": "pnpm -r lint", diff --git a/packages/contracts/tsconfig.json b/packages/contracts/tsconfig.json index 8c9a77e..0496317 100644 --- a/packages/contracts/tsconfig.json +++ b/packages/contracts/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "composite": false + "composite": true }, "include": ["src"] } diff --git a/packages/env/tsconfig.json b/packages/env/tsconfig.json index 8127e26..ab87bf5 100644 --- a/packages/env/tsconfig.json +++ b/packages/env/tsconfig.json @@ -8,4 +8,4 @@ "sourceMap": true }, "include": ["src"] -} \ No newline at end of file +} diff --git a/packages/integration-client/tsconfig.json b/packages/integration-client/tsconfig.json index e25757b..8a14f41 100644 --- a/packages/integration-client/tsconfig.json +++ b/packages/integration-client/tsconfig.json @@ -5,7 +5,7 @@ "ignoreDeprecations": "5.0", "rootDir": "src", "outDir": "dist", - "composite": false + "composite": true }, "include": ["src"] -} \ No newline at end of file +} diff --git a/packages/webhook-utils/tsconfig.json b/packages/webhook-utils/tsconfig.json index 8c9a77e..0496317 100644 --- a/packages/webhook-utils/tsconfig.json +++ b/packages/webhook-utils/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "rootDir": "src", "outDir": "dist", - "composite": false + "composite": true }, "include": ["src"] } diff --git a/tsconfig.base.json b/tsconfig.base.json index 9d0cf60..08d80dd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -11,6 +11,9 @@ "declaration": true, "sourceMap": true, "outDir": "dist", - "baseUrl": "." + "baseUrl": ".", + "incremental": true, + "tsBuildInfoFile": "./dist/.tsbuildinfo", + "composite": true } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..f5af2c8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,12 @@ +{ + "files": [], + "references": [ + { "path": "./apps/access-api" }, + { "path": "./apps/dashboard" }, + { "path": "./apps/discord-bot" }, + { "path": "./packages/contracts" }, + { "path": "./packages/env" }, + { "path": "./packages/integration-client" }, + { "path": "./packages/webhook-utils" } + ] +}