Skip to content

Commit

Permalink
docs: add quotes to directory filter with glob (#3554)
Browse files Browse the repository at this point in the history
As reported in #3480 pnpm seems to intercept filter syntax before it
reaches turbo if a package script uses `--filter=./dir/*` without
quotes.

Since quotes are also required to use a directory with a glob via ZSH it
seems to make sense to add them to our docs.
  • Loading branch information
chris-olszewski authored Feb 1, 2023
1 parent c5bb6ce commit ee35db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/repo/docs/core-concepts/monorepos/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ turbo run build --filter=my-app^...
Useful for when you want to target a specific directory, not a workspace name. It supports:

- Exact matches: `--filter=./apps/docs`
- Globs: `--filter=./apps/*`
- Globs: `--filter='./apps/*'`

```sh
# Build all of the workspaces in the 'apps' directory
turbo run build --filter=./apps/*
turbo run build --filter='./apps/*'
```

#### Combining with other syntaxes
Expand Down

1 comment on commit ee35db4

@vercel
Copy link

@vercel vercel bot commented on ee35db4 Feb 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.