Skip to content

Commit f221a41

Browse files
authored
feat(misc): remove @nrwl/ scoped packages (#27858)
This PR removes the `@nrwl/*` packages. Also cleans up references to the legacy packages. NOTE: The rescope page is now under `/deprecated/rescope`. There is still >1000K monthly traffic to it, which might be due to older Nx users. <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent 0fd8b41 commit f221a41

File tree

301 files changed

+71
-4308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+71
-4308
lines changed

docs/changelog/17_0_0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ title="Nx 17.0 Has Landed!!!"
2222
Use [the `nx migrate` command](/features/automate-updating-dependencies) to automatically account for these breaking changes.
2323

2424
{% cards cols="2" %}
25-
{% card title="Rename @nx/linter to @nx/eslint" type="document" url="/recipes/other/rescope#rename" /%}
25+
{% card title="Rename @nx/linter to @nx/eslint" type="document" url="/deprecated/rescope#rename" /%}
2626
{% card title="Removed workspace generator command" type="external" url="https://github.com/nrwl/nx/pull/19541" /%}
2727
{% card title="Removed workspace-lint command" type="external" url="https://github.com/nrwl/nx/pull/16212" /%}
2828
{% card title="Removed defaultCollection property" type="external" url="https://github.com/nrwl/nx/pull/19708" /%}

docs/generated/manifests/menus.json

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,23 +2166,6 @@
21662166
}
21672167
],
21682168
"disableCollapsible": false
2169-
},
2170-
{
2171-
"name": "Other",
2172-
"path": "/recipes/other",
2173-
"id": "other",
2174-
"isExternal": false,
2175-
"children": [
2176-
{
2177-
"name": "Rescope Packages from @nrwl to @nx",
2178-
"path": "/recipes/other/rescope",
2179-
"id": "rescope",
2180-
"isExternal": false,
2181-
"children": [],
2182-
"disableCollapsible": false
2183-
}
2184-
],
2185-
"disableCollapsible": false
21862169
}
21872170
],
21882171
"disableCollapsible": false
@@ -4054,31 +4037,6 @@
40544037
"children": [],
40554038
"disableCollapsible": false
40564039
},
4057-
{
4058-
"name": "Other",
4059-
"path": "/recipes/other",
4060-
"id": "other",
4061-
"isExternal": false,
4062-
"children": [
4063-
{
4064-
"name": "Rescope Packages from @nrwl to @nx",
4065-
"path": "/recipes/other/rescope",
4066-
"id": "rescope",
4067-
"isExternal": false,
4068-
"children": [],
4069-
"disableCollapsible": false
4070-
}
4071-
],
4072-
"disableCollapsible": false
4073-
},
4074-
{
4075-
"name": "Rescope Packages from @nrwl to @nx",
4076-
"path": "/recipes/other/rescope",
4077-
"id": "rescope",
4078-
"isExternal": false,
4079-
"children": [],
4080-
"disableCollapsible": false
4081-
},
40824040
{
40834041
"name": "Showcase",
40844042
"path": "/showcase",
@@ -4939,6 +4897,14 @@
49394897
"isExternal": false,
49404898
"children": [],
49414899
"disableCollapsible": false
4900+
},
4901+
{
4902+
"name": "Rescope Packages from @nrwl to @nx",
4903+
"path": "/deprecated/rescope",
4904+
"id": "rescope",
4905+
"isExternal": false,
4906+
"children": [],
4907+
"disableCollapsible": false
49424908
}
49434909
],
49444910
"disableCollapsible": false
@@ -5047,6 +5013,14 @@
50475013
"children": [],
50485014
"disableCollapsible": false
50495015
},
5016+
{
5017+
"name": "Rescope Packages from @nrwl to @nx",
5018+
"path": "/deprecated/rescope",
5019+
"id": "rescope",
5020+
"isExternal": false,
5021+
"children": [],
5022+
"disableCollapsible": false
5023+
},
50505024
{
50515025
"name": "See Also",
50525026
"path": "/see-also",
@@ -10123,14 +10097,6 @@
1012310097
"isExternal": false,
1012410098
"disableCollapsible": false
1012510099
},
10126-
{
10127-
"id": "tao",
10128-
"path": "/nx-api/tao",
10129-
"name": "tao",
10130-
"children": [],
10131-
"isExternal": false,
10132-
"disableCollapsible": false
10133-
},
1013410100
{
1013510101
"id": "vite",
1013610102
"path": "/nx-api/vite",

docs/generated/manifests/nx-api.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,18 +3113,6 @@
31133113
},
31143114
"path": "/nx-api/storybook"
31153115
},
3116-
"tao": {
3117-
"githubRoot": "https://github.com/nrwl/nx/blob/master",
3118-
"name": "tao",
3119-
"packageName": "@nrwl/tao",
3120-
"description": "CLI for generating code and running commands",
3121-
"documents": {},
3122-
"root": "/packages/tao",
3123-
"source": "/packages/tao/src",
3124-
"executors": {},
3125-
"generators": {},
3126-
"path": "/nx-api/tao"
3127-
},
31283116
"vite": {
31293117
"githubRoot": "https://github.com/nrwl/nx/blob/master",
31303118
"name": "vite",

docs/generated/manifests/nx.json

Lines changed: 22 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,29 +2962,6 @@
29622962
"isExternal": false,
29632963
"path": "/recipes/nx-release",
29642964
"tags": []
2965-
},
2966-
{
2967-
"id": "other",
2968-
"name": "Other",
2969-
"description": "Other recipes you will find useful.",
2970-
"mediaImage": "",
2971-
"file": "",
2972-
"itemList": [
2973-
{
2974-
"id": "rescope",
2975-
"name": "Rescope Packages from @nrwl to @nx",
2976-
"description": "",
2977-
"mediaImage": "",
2978-
"file": "shared/recipes/rescope",
2979-
"itemList": [],
2980-
"isExternal": false,
2981-
"path": "/recipes/other/rescope",
2982-
"tags": []
2983-
}
2984-
],
2985-
"isExternal": false,
2986-
"path": "/recipes/other",
2987-
"tags": []
29882965
}
29892966
],
29902967
"isExternal": false,
@@ -5551,40 +5528,6 @@
55515528
"path": "/recipes/nx-release/build-before-versioning",
55525529
"tags": ["nx-release"]
55535530
},
5554-
"/recipes/other": {
5555-
"id": "other",
5556-
"name": "Other",
5557-
"description": "Other recipes you will find useful.",
5558-
"mediaImage": "",
5559-
"file": "",
5560-
"itemList": [
5561-
{
5562-
"id": "rescope",
5563-
"name": "Rescope Packages from @nrwl to @nx",
5564-
"description": "",
5565-
"mediaImage": "",
5566-
"file": "shared/recipes/rescope",
5567-
"itemList": [],
5568-
"isExternal": false,
5569-
"path": "/recipes/other/rescope",
5570-
"tags": []
5571-
}
5572-
],
5573-
"isExternal": false,
5574-
"path": "/recipes/other",
5575-
"tags": []
5576-
},
5577-
"/recipes/other/rescope": {
5578-
"id": "rescope",
5579-
"name": "Rescope Packages from @nrwl to @nx",
5580-
"description": "",
5581-
"mediaImage": "",
5582-
"file": "shared/recipes/rescope",
5583-
"itemList": [],
5584-
"isExternal": false,
5585-
"path": "/recipes/other/rescope",
5586-
"tags": []
5587-
},
55885531
"/showcase": {
55895532
"id": "showcase",
55905533
"name": "Showcase",
@@ -6764,6 +6707,17 @@
67646707
"isExternal": false,
67656708
"path": "/deprecated/v1-nx-plugin-api",
67666709
"tags": []
6710+
},
6711+
{
6712+
"id": "rescope",
6713+
"name": "Rescope Packages from @nrwl to @nx",
6714+
"description": "",
6715+
"mediaImage": "",
6716+
"file": "shared/deprecated/rescope",
6717+
"itemList": [],
6718+
"isExternal": false,
6719+
"path": "/deprecated/rescope",
6720+
"tags": []
67676721
}
67686722
],
67696723
"isExternal": false,
@@ -6913,6 +6867,17 @@
69136867
"path": "/deprecated/v1-nx-plugin-api",
69146868
"tags": []
69156869
},
6870+
"/deprecated/rescope": {
6871+
"id": "rescope",
6872+
"name": "Rescope Packages from @nrwl to @nx",
6873+
"description": "",
6874+
"mediaImage": "",
6875+
"file": "shared/deprecated/rescope",
6876+
"itemList": [],
6877+
"isExternal": false,
6878+
"path": "/deprecated/rescope",
6879+
"tags": []
6880+
},
69166881
"/see-also": {
69176882
"id": "see-also",
69186883
"name": "See Also",

docs/generated/packages-metadata.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,17 +3086,6 @@
30863086
"root": "/packages/storybook",
30873087
"source": "/packages/storybook/src"
30883088
},
3089-
{
3090-
"description": "CLI for generating code and running commands",
3091-
"documents": [],
3092-
"executors": [],
3093-
"generators": [],
3094-
"githubRoot": "https://github.com/nrwl/nx/blob/master",
3095-
"name": "tao",
3096-
"packageName": "@nrwl/tao",
3097-
"root": "/packages/tao",
3098-
"source": "/packages/tao/src"
3099-
},
31003089
{
31013090
"description": "The Nx Plugin for building and testing applications using Vite",
31023091
"documents": [

docs/map.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,19 +1121,6 @@
11211121
"file": "shared/recipes/nx-release/build-before-versioning"
11221122
}
11231123
]
1124-
},
1125-
{
1126-
"name": "Other",
1127-
"id": "other",
1128-
"description": "Other recipes you will find useful.",
1129-
"itemList": [
1130-
{
1131-
"name": "Rescope Packages from @nrwl to @nx",
1132-
"id": "rescope",
1133-
"tags": [],
1134-
"file": "shared/recipes/rescope"
1135-
}
1136-
]
11371124
}
11381125
]
11391126
},
@@ -1438,6 +1425,11 @@
14381425
"name": "v1 Nx Plugin API",
14391426
"id": "v1-nx-plugin-api",
14401427
"file": "shared/deprecated/v1-nx-plugin-api"
1428+
},
1429+
{
1430+
"name": "Rescope Packages from @nrwl to @nx",
1431+
"id": "rescope",
1432+
"file": "shared/deprecated/rescope"
14411433
}
14421434
]
14431435
},

docs/shared/recipes/rescope.md renamed to docs/shared/deprecated/rescope.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Rescope Packages from @nrwl to @nx
22

3-
As of version 16, all the official Nx plugins are moving from the `@nrwl` npm scope to `@nx`. The goal is for anyone looking through a list of dependencies to easily make the connection between the `nx` package and the `@nx` plugins that are associated with it.
3+
As of version 16, all the official Nx plugins moved from the `@nrwl` npm scope to `@nx`. The goal is for anyone looking through a list of dependencies to easily make the connection between the `nx` package and the `@nx` plugins that are associated with it.
44

5-
`@nrwl/*` packages are still provided and reexport the `@nx/*` packages so any third-party plugins should continue to work. Any generators (e.g. `@nrwl/react:library`) and executors (e.g. `@nrwl/webpack:webpack`) will continue to work in the interim as well.
5+
As of version 20, the `@nrwl` scoped packages will no longer be published to npm.
66

77
## What Do You Need To Do?
88

docs/shared/recipes/installation/update-global-installation.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ There are some cases where an issue could arise when using an outdated global in
55
- `Could not find Nx modules in this workspace.`
66
- `The current directory isn't part of an Nx workspace.`
77

8-
If you find yourself in this position, you will need to update your global install of Nx.
8+
If you find yourself in this position, you will need to update your global installation of Nx.
99

1010
In most cases, you can update a globally installed npm package by rerunning the command you used to install it.
1111

12-
If you cannot remember which package manager you installed Nx globally with or are still encountering issues, you can locate other installs of Nx with these commands:
12+
If you cannot remember which package manager you installed Nx globally with or are still encountering issues, you can locate other installations of Nx with these commands:
1313

1414
{% tabs %}
1515
{% tab label="npm" %}
@@ -43,33 +43,27 @@ pnpm list --global nx
4343
{% /tab %}
4444
{% /tabs %}
4545

46-
{% callout type="note" title="Older Global Installations" %}
47-
48-
In prior versions, Nx could be installed globally via `@nrwl/cli` or `@nrwl/tao`. If you are seeing these warnings but cannot find other global installations of Nx via the above commands, you should look for these packages as well. In general, you should remove these and install the latest version of `nx` instead.
49-
50-
{% /callout %}
51-
5246
You can then remove the extra global installations by running the following commands for the duplicate installations:
5347

5448
{% tabs %}
5549
{% tab label="npm" %}
5650

5751
```shell
58-
npm rm --global nx @nrwl/cli @nrwl/tao
52+
npm rm --global nx
5953
```
6054

6155
{% /tab %}
6256
{% tab label="yarn" %}
6357

6458
```shell
65-
yarn global remove nx @nrwl/cli @nrwl/tao
59+
yarn global remove nx
6660
```
6761

6862
{% /tab %}
6963
{% tab label="pnpm" %}
7064

7165
```shell
72-
pnpm rm --global nx @nrwl/cli @nrwl/tao
66+
pnpm rm --global nx
7367
```
7468

7569
{% /tab %}

docs/shared/recipes/tips-n-tricks/keep-nx-versions-in-sync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
If your Nx plugin versions do not match the version of `nx` in your repository, you can encounter some difficult to debug errors. To get your Nx plugins back in sync, follow the steps below:
44

5-
1. Identify all the official Nx plugins that are used in your repo. This includes `nx` and any packages in the `@nx/` or `@nrwl/` organization scope, except for plugins that are still in [nx-labs](https://github.com/nrwl/nx-labs). Also, `nx-cloud` does not need to match the other package versions.
5+
1. Identify all the official Nx plugins that are used in your repo. This includes `nx` and any packages in the `@nx/` organization scope, except for plugins that are still in [nx-labs](https://github.com/nrwl/nx-labs). Also, `nx-cloud` does not need to match the other package versions.
66
2. Run `nx report` and identify the minimum and maximum version numbers for all the packages that need to by in sync.
77
3. Run `nx migrate --from=[minimumVersion] --to=[maximumVersion]`. Note that all the official Nx plugin migration generators are designed to be idempotent - meaning that running them multiple times is equivalent to running them once. This allows you to run the migrations for all plugins without being concerned about re-running a migration that was already run.
88

docs/shared/reference/sitemap.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@
177177
- [Configure Changelog Format](/recipes/nx-release/configure-changelog-format)
178178
- [Publish a Custom Dist Directory](/recipes/nx-release/publish-custom-dist-directory)
179179
- [Build Before Versioning](/recipes/nx-release/build-before-versioning)
180-
- [Other](/recipes/other)
181-
- [Rescope Packages from @nrwl to @nx](/recipes/other/rescope)
182180
- [Troubleshoot Nx Console Issues](/recipes/nx-console/console-troubleshooting)
183181
- [Showcase](/showcase)
184182
- [Nx with your favorite tech](/showcase/example-repos)
@@ -232,6 +230,7 @@
232230
- [globalImplicitDependencies](/deprecated/global-implicit-dependencies)
233231
- [Angular Schematics and Builders](/deprecated/angular-schematics-builders)
234232
- [v1 Nx Plugin API](/deprecated/v1-nx-plugin-api)
233+
- [Rescope Packages from @nrwl to @nx](/deprecated/rescope)
235234
- [See Also](/see-also)
236235
- [Site Map](/see-also/sitemap)
237236

@@ -712,7 +711,6 @@
712711
- [convert-to-inferred](/nx-api/storybook/generators/convert-to-inferred)
713712
- [migrate-7](/nx-api/storybook/generators/migrate-7)
714713
- [migrate-8](/nx-api/storybook/generators/migrate-8)
715-
- [tao](/nx-api/tao)
716714
- [vite](/nx-api/vite)
717715
- [documents](/nx-api/vite/documents)
718716
- [Overview](/nx-api/vite/documents/overview)

docs/shared/tutorials/angular-monorepo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ NX Capabilities in @nx/angular:
203203
component-story : Creates a stories.ts file for a component.
204204
component-test : Creates a cypress component test file for a component.
205205
convert-tslint-to-eslint : Converts a project from TSLint to ESLint.
206-
init : Initializes the `@nrwl/angular` plugin.
206+
init : Initializes the `@nx/angular` plugin.
207207
library : Creates an Angular library.
208208
library-secondary-entry-point : Creates a secondary entry point for an Angular publishable library.
209209
remote : Generate a Remote Angular Module Federation Application.
@@ -214,7 +214,7 @@ NX Capabilities in @nx/angular:
214214
215215
delegate-build : Delegates the build to a different target while supporting incremental builds.
216216
ng-packagr-lite : Builds a library with support for incremental builds.
217-
This executor is meant to be used with buildable libraries in an incremental build scenario. It is similar to the `@nrwl/angular:package` executor but with some key differences:
217+
This executor is meant to be used with buildable libraries in an incremental build scenario. It is similar to the `@nx/angular:package` executor but with some key differences:
218218
- It doesn't run `ngcc` automatically (`ngcc` needs to be run separately beforehand if needed, this can be done in a `postinstall` hook on `package.json`).
219219
- It only produces ESM2020 bundles.
220220
- It doesn't generate package exports in the `package.json`.

0 commit comments

Comments
 (0)