From 5f4e1391c49cbe98c945e770b16d67c8886ec8dc Mon Sep 17 00:00:00 2001 From: David LJ Date: Mon, 2 Dec 2024 09:25:17 +0100 Subject: [PATCH] docs: update entry/project defaults with production mode (#861) --- packages/docs/src/content/docs/explanations/entry-files.md | 6 +++--- .../src/content/docs/guides/configuring-project-files.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/docs/src/content/docs/explanations/entry-files.md b/packages/docs/src/content/docs/explanations/entry-files.md index c8da783ff..bf6051dd4 100644 --- a/packages/docs/src/content/docs/explanations/entry-files.md +++ b/packages/docs/src/content/docs/explanations/entry-files.md @@ -25,10 +25,10 @@ entry files. Here's the default configuration in full: ```json { "entry": [ - "{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", - "src/{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}" + "{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", + "src/{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}" ], - "project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"] + "project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}!"] } ``` diff --git a/packages/docs/src/content/docs/guides/configuring-project-files.md b/packages/docs/src/content/docs/guides/configuring-project-files.md index 92c88b803..51148801b 100644 --- a/packages/docs/src/content/docs/guides/configuring-project-files.md +++ b/packages/docs/src/content/docs/guides/configuring-project-files.md @@ -217,10 +217,10 @@ To reiterate, the default `entry` and `project` files for each workspace: ```json { "entry": [ - "{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", - "src/{index,main,cli}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}" + "{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}", + "src/{index,cli,main}.{js,cjs,mjs,jsx,ts,cts,mts,tsx}" ], - "project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"] + "project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}!"] } ```