npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nx-rescope

v1.0.6

Published

Update your Nx packages to use the new @nx scope (formerly @nrwl).

Downloads

6

Readme

nx-rescope

The nx-rescope tool is designed to assist you in migrating your workspace to the new scope format introduced in Nx version 16. This update involved transitioning the @nrwl packages to the @nx scope. To learn more about this change, refer to the official documentation.

Usage

npx nx-rescope

Warning

Nx already has a built-in command to apply these migrations

nx migrate latest
npx nx migrate --run-migrations --create-commits

What does it do?

The nx-rescope tool will do the following:

  • Update the @nrwl dependencies to @nx
  • Update the @nrwl devDependencies to @nx
  • Update the @nrwl peerDependencies to @nx
  • Update the @nrwl overrides to @nx (if the --update-overrides option is enabled)
  • Install the new dependencies using your preferred package manager

You can check the current supported rescope/rename packages here.

What does it NOT do?

While the nx-rescope tool assists in migrating your workspace to the new scope format, it does not perform the following actions:

  • Update the version of the @nrwl/@nx packages. It focuses on updating the scope format rather than upgrading the package versions (use nx migrate latest instead).
  • Update the package.json files of your individual projects. Only the workspace's package.json file will be updated during the migration.
  • Modify other configuration files such as tsconfig.json, jest.config.js, etc. The tool solely focuses on updating the workspace's package.json file.

It's important to note that you may need to handle these aspects manually if necessary.

What is the recommended approach?

The recommended approach is to use the nx-rescope tool in conjunction with the nx migrate latest command. This will ensure that your workspace is up-to-date with the latest version of Nx and that the scope format is updated accordingly.

To make sure that your workspace is ready for the migration, you can run the following commands in sequence:

nx migrate latest

Then use your package manager of choice to install the new dependencies, and to make sure you are using the latest version of Nx or at least the version 16.0.0:

npm install
# or
yarn install
# or
pnpm install

Finally, run the nx-rescope tool to update the scope format:

npx nx-rescope

Options

| Option | Description | | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --help | Display a help message | | --dry-run | By using this option, the tool will perform a dry run, meaning it will simulate the changes without modifying the package.json file or installing new dependencies. | | --force | If you encounter any conditions that prevent the execution of the script, you can use the --force option to override these conditions and force the tool to proceed. | | --update-overrides | Enabling this option will update the overrides section of the package.json file, ensuring that it aligns with the new scope format. | | --skip-install | If you don't want the tool to automatically install the new dependencies, you can utilize the --skip-install option. This is useful if you prefer to handle the installation manually. |

Feel free to modify and enhance this readme file according to your specific project requirements.