From a716ac36f6ea0d85ce5c94e314983e6cf8811703 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sun, 28 Jan 2024 14:19:19 +0000 Subject: [PATCH] [dx] Add docs to lazy caching. (#2672) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, our docs site would always get rebuilt. Now it'll be slightly smarter with lazy. ### Change Type - [x] `internal` — Any other changes that don't affect the published package[^2] --- lazy.config.ts | 15 +++++++++++++++ lerna.json | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lazy.config.ts b/lazy.config.ts index e8670628f..67455c6ae 100644 --- a/lazy.config.ts +++ b/lazy.config.ts @@ -12,6 +12,7 @@ const config = { exclude: [ '/coverage/**/*', '/dist*/**/*', + '/.next*/**/*', '**/*.tsbuildinfo', '/docs/gen/**/*', ], @@ -28,6 +29,20 @@ const config = { inputs: ['api/**/*', 'src/**/*'], }, }, + 'apps/docs': { + cache: { + inputs: [ + 'app/**/*', + 'api/**/*', + 'components/**/*', + 'public/**/*', + 'scrips/**/*', + 'styles/**/*', + 'types/**/*', + 'utils/**/*', + ], + }, + }, }, }, dev: { diff --git a/lerna.json b/lerna.json index 283f63621..8329bb3fb 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,5 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "packages": [ - "packages/*" - ], + "packages": ["packages/*"], "version": "2.0.0-beta.2" }