fix(misc): replace missed references to @nrwl scope (#239)

This commit is contained in:
Jack Hsu 2023-05-02 14:07:37 -04:00 committed by GitHub
parent ffb91bcabb
commit 55b24e4e89
3 changed files with 8 additions and 8 deletions

View File

@ -10,12 +10,12 @@ This package is a Rspack plugin for Nx.
## Getting Started ## Getting Started
Use `--preset=@nrwl/rspack` when creating new workspace. Use `--preset=@nx/rspack` when creating new workspace.
e.g. e.g.
```bash ```bash
npx create-nx-workspace@latest rspack-demo --preset=@nrwl/rspack npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack
``` ```
Now, you can go into the `rspack-demo` folder and start development. Now, you can go into the `rspack-demo` folder and start development.
@ -40,20 +40,20 @@ You can add Rspack to any existing Nx workspace.
First, install the plugin: First, install the plugin:
```bash ```bash
npm install --save-dev @nrwl/rspack npm install --save-dev @nx/rspack
``` ```
Then, run the `rspack-project` generator: Then, run the `rspack-project` generator:
```bash ```bash
npx nx g @nrwl/rspack:rspack-project --skipValidation npx nx g @nx/rspack:rspack-project --skipValidation
``` ```
**Note:** The `--skipValidation` option allows you to overwrite existing build targets. **Note:** The `--skipValidation` option allows you to overwrite existing build targets.
## Workspace libraries ## Workspace libraries
The `@nrwl/rspack` executor support importing workspace libs into the app. The `@nx/rspack` executor support importing workspace libs into the app.
```bash ```bash
npx nx g @nx/react:lib mylib npx nx g @nx/react:lib mylib

View File

@ -39,7 +39,7 @@ export default async function (
tasks.push(createAppTask, convertAppTask); tasks.push(createAppTask, convertAppTask);
} else if (options.framework === 'web') { } else if (options.framework === 'web') {
const { applicationGenerator: webAppGenerator } = ensurePackage( const { applicationGenerator: webAppGenerator } = ensurePackage(
'@nrwl/web', '@nx/web',
nxVersion nxVersion
); );
const createAppTask = await webAppGenerator(tree, { const createAppTask = await webAppGenerator(tree, {

View File

@ -57,11 +57,11 @@
}, },
"buildTarget": { "buildTarget": {
"type": "string", "type": "string",
"description": "The build target of the project to be transformed to use the @nrwl/vite:build executor." "description": "The build target of the project to be transformed to use the @nx/vite:build executor."
}, },
"serveTarget": { "serveTarget": {
"type": "string", "type": "string",
"description": "The serve target of the project to be transformed to use the @nrwl/vite:dev-server and @nrwl/vite:preview-server executors." "description": "The serve target of the project to be transformed to use the @nx/vite:dev-server and @nx/vite:preview-server executors."
}, },
"rootProject": { "rootProject": {
"type": "boolean", "type": "boolean",