Skip to content

Filter out node_modules without breaking nx monorepos#352

Merged
Yuangwang merged 3 commits intomainfrom
filter_node_modules_fixed
Jul 21, 2025
Merged

Filter out node_modules without breaking nx monorepos#352
Yuangwang merged 3 commits intomainfrom
filter_node_modules_fixed

Conversation

@Yuangwang
Copy link
Collaborator

Round 2 of filtering out node_modules, this time with a carve out to avoid breaking monorepos

frameworkVersion: nextVersion,
},
};
if (!process.env.MONOREPO_COMMAND) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What will be the mechanism for handling output files when it is a monorepo then, does this mean we do not delete any files without serverApp being set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nx monorepos at least will behave as they've always behaved in the past, nothing is deleted

frameworkVersion: nextVersion,
},
};
if (!process.env.MONOREPO_COMMAND) {

Choose a reason for hiding this comment

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

i think proper behavior is that we support monorepo projects as well.
But I can see how that's a hassle now and requires some careful rethinking.
can we leave a TODO here linking to a bug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah can create a bug and link it here to support nx monorepos properly. I don't have much experience there right now so I don't know immediately how to solve this issues since the standalone build doesn't come with a node_modules for some reason but adding the todo will be a good reminder for later anyways

Copy link
Collaborator

@annajowang annajowang left a comment

Choose a reason for hiding this comment

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

approving with correct account.

@Yuangwang Yuangwang merged commit 98eb4d2 into main Jul 21, 2025
11 checks passed
richwear1307 pushed a commit to richwear1307/horse-tipping-app that referenced this pull request Feb 27, 2026
* round 2 filtering out node_modules, this time without breaking monorepos

* fix test and add bug

* fix adapter
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.

4 participants