diff --git a/README.md b/README.md index 0246d31b25..0c85e576b3 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ This package is a Rspack plugin for Nx. ## Getting Started -Use `--preset=@nrwl/rspack` when creating new workspace. +Use `--preset=@nx/rspack` when creating new workspace. e.g. ```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. @@ -40,20 +40,20 @@ You can add Rspack to any existing Nx workspace. First, install the plugin: ```bash -npm install --save-dev @nrwl/rspack +npm install --save-dev @nx/rspack ``` Then, run the `rspack-project` generator: ```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. ## 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 npx nx g @nx/react:lib mylib diff --git a/src/generators/application/application.ts b/src/generators/application/application.ts index bd41490e3d..5fe252a8cf 100644 --- a/src/generators/application/application.ts +++ b/src/generators/application/application.ts @@ -39,7 +39,7 @@ export default async function ( tasks.push(createAppTask, convertAppTask); } else if (options.framework === 'web') { const { applicationGenerator: webAppGenerator } = ensurePackage( - '@nrwl/web', + '@nx/web', nxVersion ); const createAppTask = await webAppGenerator(tree, { diff --git a/src/generators/configuration/schema.json b/src/generators/configuration/schema.json index d2593ae47e..90c4189b21 100644 --- a/src/generators/configuration/schema.json +++ b/src/generators/configuration/schema.json @@ -57,11 +57,11 @@ }, "buildTarget": { "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": { "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": { "type": "boolean",