-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the enhancement
I've seen you upgraded Lerna to the latest version (#1149). This also comes with performance improvements when running tasks (e.g. improved task scheduling + caching). See the docs for more info: https://lerna.js.org/docs/features/cache-tasks
This is done by delegating the task execution to Nx underneath, rather than using the p-queue package.
Code Snippet
What would be required is first to enable Nx by changing the lerna.json as follows:
{
"packages": [
"packages/*"
],
+ "useNx": true,
"version": "independent"
}And then run npx nx init to create a new nx.json where one can specify the cacheable operations for this workspace. Usually build, test, lint etc.
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
+ "cacheableOperations": ["build", "test"]
}
}
}
}The Lerna docs have all the details for that :)
Additional information
Happy to help with more info if needed.
janbiasi
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request