pnpm/turbo workspace issue

I have the following workspace setup:
packages:
- apps/*
- packages/*
- packages/api/*
- tooling/*
packages:
- apps/*
- packages/*
- packages/api/*
- tooling/*
I get a warning that the api folder itself doesn't have a package.json when running pnpm commands, so I added "!packages/api" to that list, which fixed the issue (pnpm commands work fine for packages in the api folder), but turbo-ignore doesn't seem to find the packages in the api folder with that addition when running the turbo build dry-run command. Anyone know how I can work around this?