Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@tramvai/tools-migrate
Advanced tools
Tool for executing code migrations for the tramvai modules.
How does it work:
__migrations__
contains migrations files for the executionpackage.json
, tramvai.json
and project source code.tramvai-migrate-applied.json
to the project rootTo disable migration add environment variable SKIP_TRAMVAI_MIGRATIONS
.
You can add new migration with command yarn generate:migration
. You will need to specify package name for the migration and the migration name itself.
Also add to this package's package.json
folder with the built migrations to the field files
if it wasn't specified before:
"files": [
"lib",
"__migrations__"
],
Migration is a function that accepts special api using which it implements changes to the source code or configs.
export interface Api {
packageJSON: PackageJSON; // object represented root package.json
tramvaiJSON: TramvaiJSON; // object represented tramvai.json
transform: (transformer: Transform, pathTransformer?: PathTransformer) => Promise<void>; // function that accepts transform function for `jscodeshift` and transform function for the file renames
}
Code transformations is done with jscodeshift
Rules:
null | undefined
or original source from the transform function in cases when migration doesn't change source code. Otherwise it will lead to unnecessary fs writing.j(source)
to make searches and transformsFAQs
Tool for executing code migrations for the tramvai modules.
The npm package @tramvai/tools-migrate receives a total of 1,167 weekly downloads. As such, @tramvai/tools-migrate popularity was classified as popular.
We found that @tramvai/tools-migrate 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.