You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 newnx.json
where one can specify the cacheable operations for this workspace. Usuallybuild
,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.
The text was updated successfully, but these errors were encountered: