@skuba-lib/api 3.0.0-test-sbpaths-20261009033720 → 3.0.0

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/lib/git/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_git = require("../git-B_EhZlHc.cjs");
2
+ const require_git = require("../git-CSGc8r3Q.cjs");
3
3
  exports.commit = require_git.commit;
4
4
  exports.commitAllChanges = require_git.commitAllChanges;
5
5
  exports.currentBranch = require_git.currentBranch;
package/lib/git/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as push, d as getHeadCommitMessage, f as currentBranch, g as commit, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, n as isFileGitIgnored, p as commitAllChanges, r as reset, u as getHeadCommitId } from "../git-H16Y1wAJ.mjs";
1
+ import { a as push, d as getHeadCommitMessage, f as currentBranch, g as commit, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, n as isFileGitIgnored, p as commitAllChanges, r as reset, u as getHeadCommitId } from "../git-BygvGOZr.mjs";
2
2
  export { commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
@@ -142,7 +142,7 @@ const commitAllChanges = async ({ dir, message, author, committer, ignore }) =>
142
142
  const gitRoot = await findRoot$1({ dir });
143
143
  if (!gitRoot) throw new Error(`Could not find Git root from directory: ${dir}`);
144
144
  await Promise.all(changedFiles.map(async (file) => {
145
- if (path.relative(dir, file.path).startsWith("..")) return;
145
+ if (path.relative(path.resolve(dir), path.resolve(gitRoot, file.path)).startsWith("..")) return;
146
146
  return file.state === "deleted" ? git.remove({
147
147
  fs,
148
148
  dir: gitRoot,
@@ -147,7 +147,7 @@ const commitAllChanges = async ({ dir, message, author, committer, ignore }) =>
147
147
  const gitRoot = await findRoot$1({ dir });
148
148
  if (!gitRoot) throw new Error(`Could not find Git root from directory: ${dir}`);
149
149
  await Promise.all(changedFiles.map(async (file) => {
150
- if (path.default.relative(dir, file.path).startsWith("..")) return;
150
+ if (path.default.relative(path.default.resolve(dir), path.default.resolve(gitRoot, file.path)).startsWith("..")) return;
151
151
  return file.state === "deleted" ? isomorphic_git.default.remove({
152
152
  fs: fs_extra.default,
153
153
  dir: gitRoot,
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_git = require("../git-B_EhZlHc.cjs");
3
- const require_github = require("../github-CZsdO2YL.cjs");
2
+ const require_git = require("../git-CSGc8r3Q.cjs");
3
+ const require_github = require("../github-CuWb88m1.cjs");
4
4
  exports.apiTokenFromEnvironment = require_git.apiTokenFromEnvironment;
5
5
  exports.buildNameFromEnvironment = require_git.buildNameFromEnvironment;
6
6
  exports.createCheckRun = require_github.createCheckRun;
@@ -1,3 +1,3 @@
1
- import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-H16Y1wAJ.mjs";
2
- import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-eEC8j5mu.mjs";
1
+ import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-BygvGOZr.mjs";
2
+ import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-BLyV25Ac.mjs";
3
3
  export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { n as pluralise } from "./logging-BQNEupxh.mjs";
3
- import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-H16Y1wAJ.mjs";
3
+ import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-BygvGOZr.mjs";
4
4
  import fs from "fs-extra";
5
5
  import path from "path";
6
6
  //#region src/github/octokit.ts
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
2
  const require_logging = require("./logging-BqpzZfsF.cjs");
3
- const require_git = require("./git-B_EhZlHc.cjs");
3
+ const require_git = require("./git-CSGc8r3Q.cjs");
4
4
  let fs_extra = require("fs-extra");
5
5
  fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
6
6
  let path = require("path");
package/lib/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_buildkite = require("./buildkite-BJecUBqL.cjs");
3
3
  const require_cdk_index = require("./cdk/index.cjs");
4
- const require_git = require("./git-B_EhZlHc.cjs");
5
- const require_github = require("./github-CZsdO2YL.cjs");
4
+ const require_git = require("./git-CSGc8r3Q.cjs");
5
+ const require_github = require("./github-CuWb88m1.cjs");
6
6
  const require_net = require("./net-C_4_EBsp.cjs");
7
7
  const require_rolldown = require("./rolldown-5_nTstpD.cjs");
8
8
  Object.defineProperty(exports, "Buildkite", {
package/lib/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as buildkite_exports } from "./buildkite-DnhFCzIo.mjs";
2
2
  import { t as cdk_exports } from "./cdk/index.mjs";
3
- import { t as git_exports } from "./git-H16Y1wAJ.mjs";
4
- import { t as github_exports } from "./github-eEC8j5mu.mjs";
3
+ import { t as git_exports } from "./git-BygvGOZr.mjs";
4
+ import { t as github_exports } from "./github-BLyV25Ac.mjs";
5
5
  import { t as net_exports } from "./net-D2gFEDNr.mjs";
6
6
  import { t as rolldown_exports } from "./rolldown-tZjDTuFI.mjs";
7
7
  export { buildkite_exports as Buildkite, cdk_exports as Cdk, git_exports as Git, github_exports as GitHub, net_exports as Net, rolldown_exports as Rolldown };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skuba-lib/api",
3
- "version": "3.0.0-test-sbpaths-20261009033720",
3
+ "version": "3.0.0",
4
4
  "description": "Node.js development API for skuba",
5
5
  "homepage": "https://github.com/seek-oss/skuba#readme",
6
6
  "bugs": {
@@ -81,6 +81,9 @@
81
81
  "engines": {
82
82
  "node": ">=22.14.0"
83
83
  },
84
+ "skuba": {
85
+ "version": "16.4.0"
86
+ },
84
87
  "scripts": {
85
88
  "build": "pnpm skuba build-package && ./scripts/fix-types.sh",
86
89
  "skuba": "node ../../lib/skuba",