@uxmaltech/collab-cli 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -169,7 +169,7 @@ function isBusinessCanonConfigured(config) {
|
|
|
169
169
|
/**
|
|
170
170
|
* Returns the local directory where the business canon lives.
|
|
171
171
|
* For local canons this is the user-provided path; for GitHub canons
|
|
172
|
-
* it's
|
|
172
|
+
* it's a git clone at the workspace root: `<workspace>/<repoName>/`.
|
|
173
173
|
*/
|
|
174
174
|
function getBusinessCanonDir(config) {
|
|
175
175
|
const canon = config.canons?.business;
|
|
@@ -180,10 +180,10 @@ function getBusinessCanonDir(config) {
|
|
|
180
180
|
if (canon.source === 'local' && canon.localPath) {
|
|
181
181
|
return canon.localPath;
|
|
182
182
|
}
|
|
183
|
-
// GitHub source:
|
|
183
|
+
// GitHub source: cloned at the workspace root as a sibling repo
|
|
184
|
+
// (e.g. <workspace>/collab-app-architecture/).
|
|
184
185
|
const repoName = canon.repo.split('/').pop() ?? canon.repo;
|
|
185
|
-
|
|
186
|
-
return node_path_1.default.join(collabHome, CANONS_SUBDIR, repoName);
|
|
186
|
+
return node_path_1.default.join(config.workspaceDir, repoName);
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Clones or pulls the business canon repository.
|