Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): ensure @nx/js plugin is installed for all JS workspaces #18919

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Aug 30, 2023

When running create-nx-workspace and choosing either packaged-based or TS integrated monorepo, the user does not get @nx/js plugin, which is wrong. In the future, code analysis for TS/JS files will be moved to @nx/js from nx core, so this plugin has to exist. Furthermore, not installing @nx/js automatically means users cannot generate JS libs even though that was the whole point of choosing the TS/JS stack.

This PR also deprecates the Core and Empty presets. They have both been deprecated for over a year, and we just missed removing them. They are now scheduled for removal in Nx 18.

Screenshot 2023-08-30 at 3 02 26 PM

Lastly, the @nx/workspace:remove changes here is causing e2e test failure. Not sure how it passed originally, but this is fixed in this PR as well.

@jaysoo jaysoo requested a review from a team as a code owner August 30, 2023 17:09
@jaysoo jaysoo requested a review from AgentEnder August 30, 2023 17:09
@vercel
Copy link

vercel bot commented Aug 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Aug 30, 2023 9:34pm

@jaysoo jaysoo force-pushed the feat/ensure-js-plugin branch from 16af98e to aaf96f1 Compare August 30, 2023 19:07
@jaysoo jaysoo force-pushed the feat/ensure-js-plugin branch from aaf96f1 to 5c660e0 Compare August 30, 2023 19:18
@jaysoo jaysoo requested review from meeroslav, mandarini and a team as code owners August 30, 2023 19:18
@@ -759,7 +759,7 @@ describe('Workspace Tests', () => {

expect(error).toBeDefined();
expect(error.stdout.toString()).toContain(
`${lib1} is still depended on by the following projects`
Copy link
Member Author

Choose a reason for hiding this comment

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

This is failing due to changes here 70d3728

@jaysoo jaysoo force-pushed the feat/ensure-js-plugin branch from 5c660e0 to 2cf3440 Compare August 30, 2023 19:50
@jaysoo jaysoo enabled auto-merge (squash) August 30, 2023 20:14
Deprecates NPM and Core presets and show user a warning.
@jaysoo jaysoo force-pushed the feat/ensure-js-plugin branch from 2cf3440 to b97fa54 Compare August 30, 2023 21:33
@jaysoo jaysoo merged commit c9ea9e0 into nrwl:master Aug 30, 2023
@jaysoo jaysoo deleted the feat/ensure-js-plugin branch August 31, 2023 12:34
@github-actions
Copy link

github-actions bot commented Sep 6, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants