Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@lingui/codemods
Advanced tools
This repository contains a collection of codemod scripts for use with JSCodeshift that help update Lingui APIs.
npx @lingui/codemods <transform> <path> [...options]
transform
- name of transform, see available transforms below.path
- files or directory to transform--dry
option for a dry-run and use --print
to print the output for comparisonThis will start an interactive wizard, and then run the specified transform.
v2-to-v3
Converts some outdated standards from lingui
version 2.x.x to new features and best practices introduced in lingui
version 3.x.x
npx @lingui/codemods v2-to-v3 <path>
To pass more options directly to jscodeshift, use --jscodeshift="..."
. For example:
npx @lingui/codemods --jscodeshift="--run-in-band --verbose=2"
See all available options here.
Options to recast's printer can be provided
through jscodeshift's printOptions
command line argument
npx @lingui/codemods <transform> <path> --jscodeshift="--printOptions='{\"quote\":\"double\"}'"
A CLI is built-in to help you migrate your codebase, will ask you some questions:
➜ project git:(master) lingui-codemod
? On which files or directory should the codemods be applied? for ex: ./src
? Which dialect of JavaScript do you use? for ex: JavaScript | Typescript | JavaScript with Flow
? Which transform would you like to apply? for ex: `v2-to-v3`
@lingui/codemods is MIT licensed.
FAQs
@lingui codemod scripts
We found that @lingui/codemods demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.