@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 this.range4Compare();
14
- const packages = await this.readPackages();
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/build-api",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "Build utilities API",
5
5
  "type": "module",
6
6
  "author": "MXPicture",