@mxpicture/build-api 0.2.12 → 0.2.13
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.
|
@@ -10,8 +10,10 @@ export class Changeset {
|
|
|
10
10
|
this.paths = paths;
|
|
11
11
|
}
|
|
12
12
|
async run() {
|
|
13
|
-
const range = await
|
|
14
|
-
|
|
13
|
+
const [range, packages] = await Promise.all([
|
|
14
|
+
this.range4Compare(),
|
|
15
|
+
this.readPackages(),
|
|
16
|
+
]);
|
|
15
17
|
const changed = await this.findChangedPackages(range, packages);
|
|
16
18
|
// 4) If nothing changed, exit quietly
|
|
17
19
|
if (changed.length === 0) {
|
|
@@ -29,7 +31,7 @@ export class Changeset {
|
|
|
29
31
|
let lastTag = "";
|
|
30
32
|
try {
|
|
31
33
|
// Tags like @your-scope/pkg-a@0.1.1 or pkg-a@0.1.1 are created by Changesets on publish
|
|
32
|
-
lastTag = (await execAsync("git tag --list --sort=-creatordate | head -n 1"))
|
|
34
|
+
lastTag = (await execAsync("git tag --list --sort=-creatordate | head -n 1")).stdout
|
|
33
35
|
.toString()
|
|
34
36
|
.trim();
|
|
35
37
|
}
|