build: Narrow workspace definitions (#19047)

Our workspace definitions are including projects that shouldn't be
included, especially when using temporary package.json files to control
the compilation of ESM/CJS in dual-emit packages.

This change updates the definitions to be narrower. For the client
workspace in particular, the results are more verbose because we have
packages at arbitrary depths in the tree. We should address this over
time by reorganizing the repo. For the server-related release groups the
change is much smaller because they're small and follow conventions.
This commit is contained in:
Tyler Butler 2024-01-03 18:45:45 -08:00 коммит произвёл GitHub
Родитель 1b8c524c69
Коммит c9465b4ce6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 59 добавлений и 4 удалений

Просмотреть файл

@ -1,2 +1,12 @@
# This is the workspace definition for the build-tools release group. See https://pnpm.io/pnpm-workspace_yaml for more
# information about the format.
#
# Guidelines for updating this file:
#
# 1. Keep the entries alphabetical wherever possible.
# 2. DO NOT end a glob with "**". E.g. "packages/**". Doing so can include unexpected packages. This is especially true
# of packages for which we build ESM and CJS. Such packages sometimes have package.json files in their source or
# output directories during compilation.
packages:
- "packages/**"
- "packages/*"

Просмотреть файл

@ -1,5 +1,20 @@
# This is the workspace definition for the client release group. See https://pnpm.io/pnpm-workspace_yaml for more
# information about the format.
#
# Guidelines for updating this file:
#
# 1. Keep the entries alphabetical wherever possible.
# 2. Be careful when using globs that end with "**". E.g. "packages/**". Doing so can include unexpected packages. This
# is especially true of packages for which we build ESM and CJS. Such packages sometimes have package.json files in
# their source or output directories during compilation.
packages:
- "azure/packages/**"
- "examples/**"
- "experimental/**"
- "packages/**"
# exclude any package.json files that are inside src or output directories
- "!**/dist/**"
- "!**/lib/**"
- "!**/src/**"

Просмотреть файл

@ -1,2 +1,12 @@
# This is the workspace definition for the gitrest release group. See https://pnpm.io/pnpm-workspace_yaml for more
# information about the format.
#
# Guidelines for updating this file:
#
# 1. Keep the entries alphabetical wherever possible.
# 2. DO NOT end a glob with "**". E.g. "packages/**". Doing so can include unexpected packages. This is especially true
# of packages for which we build ESM and CJS. Such packages sometimes have package.json files in their source or
# output directories during compilation.
packages:
- "packages/**"
- "packages/*"

Просмотреть файл

@ -1,2 +1,12 @@
# This is the workspace definition for the hisorian release group. See https://pnpm.io/pnpm-workspace_yaml for more
# information about the format.
#
# Guidelines for updating this file:
#
# 1. Keep the entries alphabetical wherever possible.
# 2. DO NOT end a glob with "**". E.g. "packages/**". Doing so can include unexpected packages. This is especially true
# of packages for which we build ESM and CJS. Such packages sometimes have package.json files in their source or
# output directories during compilation.
packages:
- "packages/**"
- "packages/*"

Просмотреть файл

@ -1,2 +1,12 @@
# This is the workspace definition for the server (routerlicious) release group. See https://pnpm.io/pnpm-workspace_yaml
# for more information about the format.
#
# Guidelines for updating this file:
#
# 1. Keep the entries alphabetical wherever possible.
# 2. DO NOT end a glob with "**". E.g. "packages/**". Doing so can include unexpected packages. This is especially true
# of packages for which we build ESM and CJS. Such packages sometimes have package.json files in their source or
# output directories during compilation.
packages:
- "packages/**"
- "packages/*"