From b03c9c1e388d5cbb3f008d641cdb07309e882980 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Wed, 18 Dec 2024 11:32:48 -0500 Subject: [PATCH] feat(core): add lib/** glob to workspaces so we support it out of the box (#29403) We use `libs` a lot in our content, and use it ourselves in our own monorepo. Some teams prefer it to `packages` so we should include it by default. ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes # --- packages/create-nx-workspace/src/create-workspace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-nx-workspace/src/create-workspace.ts b/packages/create-nx-workspace/src/create-workspace.ts index 728238309a4b8..74d18592ef4fc 100644 --- a/packages/create-nx-workspace/src/create-workspace.ts +++ b/packages/create-nx-workspace/src/create-workspace.ts @@ -115,8 +115,8 @@ function getWorkspaceGlobsFromPreset(preset: string): string[] { case Preset.RemixMonorepo: case Preset.VueMonorepo: case Preset.WebComponents: - return ['apps/**', 'packages/**']; + return ['apps/**', 'libs/**', 'packages/**']; default: - return ['packages/**']; + return ['libs/**', 'packages/**']; } }