diff --git a/.backstage/version.cjs b/.backstage/version.cjs index 1ca1c393..3eae1cb8 100644 --- a/.backstage/version.cjs +++ b/.backstage/version.cjs @@ -12,7 +12,7 @@ const err = (m) => { if (!version) err("Script expected a GIT_VERSION environment variable"); const file = (localPath) => { - localPath = localPath.join(__dirname, "../humane/Cargo.toml"); + localPath = path.join(__dirname, localPath); if (!fs.existsSync(localPath)) err(`Script expected a file at ${localPath}`); const contents = fs.readFileSync(localPath, { encoding: "utf-8" }); if (!version_re.test(contents)) err(`Expected ${localPath} to contain a version of "0.0.0"`);