patchrelay 0.6.0 → 0.6.1
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/dist/build-info.js +4 -4
- package/dist/build-info.json +3 -3
- package/package.json +1 -1
package/dist/build-info.js
CHANGED
|
@@ -7,10 +7,10 @@ const fallbackBuildInfo = {
|
|
|
7
7
|
commit: "unknown",
|
|
8
8
|
builtAt: "unknown",
|
|
9
9
|
};
|
|
10
|
-
export function getBuildInfo() {
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const resolvedPath = existsSync(
|
|
10
|
+
export function getBuildInfo(paths) {
|
|
11
|
+
const fallbackPath = paths?.bundledPath ?? getBundledAssetPath("dist/build-info.json");
|
|
12
|
+
const cwdBuildInfoPath = paths?.cwdPath ?? path.resolve(process.cwd(), "dist/build-info.json");
|
|
13
|
+
const resolvedPath = existsSync(fallbackPath) ? fallbackPath : cwdBuildInfoPath;
|
|
14
14
|
if (!existsSync(resolvedPath)) {
|
|
15
15
|
return fallbackBuildInfo;
|
|
16
16
|
}
|
package/dist/build-info.json
CHANGED