@travetto/cli 7.0.4 → 7.0.5
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.
- package/package.json +1 -1
- package/src/module.ts +2 -1
- package/src/scm.ts +1 -0
package/package.json
CHANGED
package/src/module.ts
CHANGED
|
@@ -60,7 +60,8 @@ export class CliModuleUtil {
|
|
|
60
60
|
childMap.has(name) ? childMap.get(name)! : childMap.set(name, { children: new Set(), name, active: new Set() }).get(name)!;
|
|
61
61
|
|
|
62
62
|
for (const mod of modules) {
|
|
63
|
-
get(mod.name).parents = mod.parents;
|
|
63
|
+
get(mod.name).parents = [...mod.parents];
|
|
64
|
+
get(mod.name).children = new Set(mod.children);
|
|
64
65
|
for (const parentModule of mod.parents) {
|
|
65
66
|
const parent = get(parentModule);
|
|
66
67
|
parent.children.add(mod.name); // Store child into parent
|
package/src/scm.ts
CHANGED
|
@@ -48,6 +48,7 @@ export class CliScmUtil {
|
|
|
48
48
|
*/
|
|
49
49
|
static async findChangedFiles(fromHash: string, toHash: string = 'HEAD'): Promise<string[]> {
|
|
50
50
|
const rootPath = Runtime.workspace.path;
|
|
51
|
+
console.log(`Detecting changes between ${fromHash} and ${toHash}...`);
|
|
51
52
|
const result = await ExecUtil.getResult(spawn('git', ['diff', '--name-only', `${fromHash}..${toHash}`, ':!**/DOC.*', ':!**/README.*'], { cwd: rootPath }), { catch: true });
|
|
52
53
|
if (!result.valid) {
|
|
53
54
|
throw new AppError('Unable to detect changes between', { category: 'data', details: { fromHash, toHash, output: (result.stderr || result.stdout) } });
|