Skip to content

Conversation

@amannn
Copy link
Owner

@amannn amannn commented Nov 11, 2025

Ignore node_modules, .next and .git by default, allowing consumers to use srcPath: './' in case they're not using a src directory. In a future iteration, we might infer these directories from .gitignore.

Note that you can still use:

srcPath: ['./src', './node_modules/@acme/components'],

… in case you want to extract from source files inside of such a directory.

This PR also contains a fix that allows using trailing slashes in srcPath (e.g. ./src/app/).

@cursor
Copy link

cursor bot commented Nov 11, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next-intl-docs Ready Ready Preview Comment Nov 12, 2025 1:57pm
next-intl-example-app-router Ready Ready Preview Comment Nov 12, 2025 1:57pm
next-intl-example-app-router-without-i18n-routing Ready Ready Preview Comment Nov 12, 2025 1:57pm

@amannn amannn changed the title Improve srcPath handling in useExtracted feature fix(useExtracted): Improve srcPath handling Nov 11, 2025
@amannn amannn marked this pull request as ready for review November 11, 2025 14:20
@amannn amannn changed the base branch from main to canary November 11, 2025 14:20
@amannn amannn changed the title fix(useExtracted): Improve srcPath handling fix(useExtracted): Filter common directories from srcPath, if not explicitly requested Nov 11, 2025
@amannn amannn merged commit afa0598 into canary Nov 12, 2025
4 of 7 checks passed
amannn added a commit that referenced this pull request Nov 12, 2025
- #2091
- #2093
- #2100

---------

Co-authored-by: Cursor Agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants