🤖 - Add post upgrade tasks for packages with existing migrations
IKatsuba opened this issue · 1 comments
IKatsuba commented
Description
Nx, Taiga and other packages have migrations. Maybe add postUpgradeTasks
for them?
{
"groupName": "Nx Workspace",
"matchManagers": [
"npm"
],
"matchPackagePatterns": [
"^nx$"
],
"matchFiles": [
"package.json"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin"
],
"postUpgradeTasks": {
"commands": [
"npm i --ignore-scripts --legacy-peer-deps",
"npx --no-install nx migrate {{{depName}}} --from={{{depName}}}@{{{replace '^[^\\d]*' '' currentValue}}} --to={{{depName}}}@{{{replace '^[^\\d]*' '' newValue}}}",
"npx --no-install nx migrate --run-migrations=migrations.json",
"rm -f migrations.json || true",
"npm i --ignore-scripts",
"npx --no-install nx format:write --all"
],
"fileFilters": [
"**/**"
]
}
},
This configuration is sufficient for the Nx upgrade, for example
splincode commented
Fixed