@travetto/repo 3.4.1 → 3.4.2
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/repo",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Monorepo utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"travetto",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"directory": "module/repo"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@travetto/cli": "^3.4.
|
|
25
|
+
"@travetto/cli": "^3.4.2",
|
|
26
26
|
"@travetto/worker": "^3.4.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependenciesMeta": {
|
package/support/cli.repo_list.ts
CHANGED
|
@@ -15,12 +15,15 @@ export class ListModuleCommand implements CliCommandShape {
|
|
|
15
15
|
/** Output format */
|
|
16
16
|
format: 'graph' | 'json' | 'list' = 'list';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** Start revision to check against */
|
|
19
|
+
fromHash?: string;
|
|
20
|
+
|
|
21
|
+
/** End revision to check against */
|
|
22
|
+
toHash?: string;
|
|
20
23
|
|
|
21
24
|
async main(): Promise<void> {
|
|
22
25
|
|
|
23
|
-
const mods = await CliModuleUtil.findModules(this.changed ? 'changed' : 'all', this.
|
|
26
|
+
const mods = await CliModuleUtil.findModules(this.changed ? 'changed' : 'all', this.fromHash, this.toHash);
|
|
24
27
|
switch (this.format) {
|
|
25
28
|
case 'list': {
|
|
26
29
|
for (const mod of mods.map(x => x.sourceFolder).sort()) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import fs from 'fs/promises';
|
|
2
|
+
|
|
1
3
|
import { CliCommandShape, CliCommand, CliScmUtil, CliValidationError } from '@travetto/cli';
|
|
2
4
|
import { CliModuleUtil } from '@travetto/cli/src/module';
|
|
3
|
-
import { RootIndex } from '@travetto/manifest';
|
|
5
|
+
import { RootIndex, path } from '@travetto/manifest';
|
|
4
6
|
|
|
5
7
|
import { PackageManager, SemverLevel } from './bin/package-manager';
|
|
6
8
|
|
|
@@ -47,6 +49,8 @@ export class RepoVersionCommand implements CliCommandShape {
|
|
|
47
49
|
if (this.commit) {
|
|
48
50
|
const commitMessage = `Publish ${modules.map(x => `${x.name}#${versions[x.name]?.replace('^', '') ?? x.version}`).join(',')}`;
|
|
49
51
|
console.log!(await CliScmUtil.createCommit(commitMessage));
|
|
52
|
+
// Touch package when done to trigger restart of compiler
|
|
53
|
+
await fs.utimes(path.resolve(RootIndex.manifest.workspacePath, 'package.json'), Date.now(), Date.now());
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
}
|