Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@darkroom.engineering/codemods

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkroom.engineering/codemods

codemods for when we change names of our libraries, sorry for that

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@darkroom.engineering/codemods

This package provides a codemod script to assist with renaming and updating dependencies in JavaScript projects. It is designed to help migrate from @studio-freight packages to @darkroom.engineering packages.And from @studio-freight/lenis to lenis. Keep in mind that this codemod is not a silver bullet and may require manual intervention in some cases. Last, this codemod will update the modified dependencies to the latest available versions. If you want to pin the dependencies to a specific version, you will need to do so manually after running the codemod.

Usage

To run the codemod, use the following command in your project's root directory:

npx @darkroom.engineering/codemods

The codemod will:

Detect the package manager (npm, Yarn, or pnpm).

Update the dependencies in package.json:

Replace @studio-freight/lenis and @studio-freight/react-lenis with lenis.

Update other @studio-freight/ dependencies to @darkroom.engineering/.

Remove @studio-freight packages from the lockfile. Install the updated dependencies.

Process JavaScript files, renaming package imports according to the updated dependencies.i.e.:

@studio-freight/lenis -> lenis @studio-freight/react-lenis -> lenis/react @studio-freight/... -> @darkroom.engineering/...

Before running the codemod, it is recommended to backup your project files and ensure your project is under version control.

Keywords

FAQs

Package last updated on 24 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc