Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
@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 702 weekly downloads. As such, @tramvai/tools-migrate popularity was classified as not 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.