@mxpicture/build-api 0.2.32 → 0.2.33

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.
@@ -128,7 +128,7 @@ export class Barrel {
128
128
  extractExports(result) {
129
129
  const record = {};
130
130
  for (const barrelDir of result.barrelDirs) {
131
- const ex = relative(join(result.pkg.srcPath, "src"), barrelDir);
131
+ const ex = relative(result.pkg.srcPath, barrelDir);
132
132
  record[`./${ex}`] = `./dist/${ex}/index.js`;
133
133
  }
134
134
  record["./package.json"] = "./package.json";
@@ -4,10 +4,12 @@ import { resolve } from "node:path";
4
4
  import { lastCommitHash, lastTag, verifiedGit } from "./git.util.js";
5
5
  let __instance = null;
6
6
  export const initGitChanges = async (repoRoot, sinceRef) => {
7
- const ref = sinceRef ?? (await lastTag(repoRoot)) ?? (await lastCommitHash(repoRoot));
8
7
  __instance = new GitChanges(repoRoot);
9
- if (ref)
10
- __instance.sinceRef = ref;
8
+ __instance.sinceRef =
9
+ sinceRef ??
10
+ (await lastTag(repoRoot)) ??
11
+ (await lastCommitHash(repoRoot)) ??
12
+ "HEAD~1";
11
13
  return __instance;
12
14
  };
13
15
  export const gitChanges = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxpicture/build-api",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "Build utilities API",
5
5
  "type": "module",
6
6
  "author": "MXPicture",