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}!"] } ```