To support monorepo setups, Jitar needs to be able to go cross package for resolving the segmentation strategy.
jitar.json
We need to add support for defining packages. The packages variable needs to support glob patterns and multiple entries.
{
"source": "src",
"target": "dist",
"packages": {
"@myorg/*": { }
}
}
If the source and target variables are different, they need to be overwritten per package.
{
"source": "src",
"target": "dist",
"packages": {
"@myorg/users": {
"source": "src",
"target": "build"
},
"@myorg/orders": { }
}
}
In this case, the source and target values are overwritten for the @myorg/users package, but not for the @myorg/orders.
To support monorepo setups, Jitar needs to be able to go cross package for resolving the segmentation strategy.
jitar.json
We need to add support for defining packages. The
packagesvariable needs to support glob patterns and multiple entries.{ "source": "src", "target": "dist", "packages": { "@myorg/*": { } } }If the
sourceandtargetvariables are different, they need to be overwritten per package.{ "source": "src", "target": "dist", "packages": { "@myorg/users": { "source": "src", "target": "build" }, "@myorg/orders": { } } }In this case, the
sourceandtargetvalues are overwritten for the@myorg/userspackage, but not for the@myorg/orders.