@skuba-lib/api 3.0.0-upgrade-pnpm-20261005223743 → 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.
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_buildkite = require("../buildkite-z4owathk.cjs");
2
+ const require_buildkite = require("../buildkite-BJecUBqL.cjs");
3
3
  exports.annotate = require_buildkite.annotate;
4
4
  exports.md = require_buildkite.md;
@@ -1,2 +1,2 @@
1
- import { n as md, r as annotate } from "../buildkite-C7bwlxiU.mjs";
1
+ import { n as md, r as annotate } from "../buildkite-DnhFCzIo.mjs";
2
2
  export { annotate, md };
@@ -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_exec = require("./exec-DCUB5Shx.cjs");
3
+ const require_exec = require("./exec-CITZpaVY.cjs");
4
4
  //#region src/buildkite/annotate.ts
5
5
  const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await require_exec.hasCommand("buildkite-agent"));
6
6
  const TRUNCATION_WARNING = "... [Truncated due to size limit]";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { t as log } from "./logging-BQNEupxh.mjs";
3
- import { n as exec, r as hasCommand } from "./exec-Csi1HI7c.mjs";
3
+ import { n as exec, r as hasCommand } from "./exec-C5tC2_a5.mjs";
4
4
  //#region src/buildkite/annotate.ts
5
5
  const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await hasCommand("buildkite-agent"));
6
6
  const TRUNCATION_WARNING = "... [Truncated due to size limit]";
@@ -1,18 +1,9 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
1
  require("util");
3
- let zod_v4 = require("zod/v4");
4
- zod_v4 = require_rolldown_runtime.__toESM(zod_v4, 1);
5
2
  //#region ../../src/utils/validation.ts
6
3
  const isObject = (value) => typeof value === "object" && value !== null;
7
4
  const hasProp = (value, prop) => isObject(value) && value.hasOwnProperty(prop);
8
- zod_v4.array(zod_v4.object({
9
- command: zod_v4.object({
10
- command: zod_v4.string(),
11
- name: zod_v4.string()
12
- }),
13
- index: zod_v4.number(),
14
- exitCode: zod_v4.number()
15
- }));
5
+ //#endregion
6
+ //#region ../../src/utils/error.ts
16
7
  const isErrorWithCode = (err, code) => hasProp(err, "code") && err.code === code;
17
8
  //#endregion
18
9
  Object.defineProperty(exports, "isErrorWithCode", {
@@ -1,15 +1,8 @@
1
- import * as z from "zod/v4";
2
1
  //#region ../../src/utils/validation.ts
3
2
  const isObject = (value) => typeof value === "object" && value !== null;
4
3
  const hasProp = (value, prop) => isObject(value) && value.hasOwnProperty(prop);
5
- z.array(z.object({
6
- command: z.object({
7
- command: z.string(),
8
- name: z.string()
9
- }),
10
- index: z.number(),
11
- exitCode: z.number()
12
- }));
4
+ //#endregion
5
+ //#region ../../src/utils/error.ts
13
6
  const isErrorWithCode = (err, code) => hasProp(err, "code") && err.code === code;
14
7
  //#endregion
15
8
  export { isErrorWithCode as t };
@@ -1,9 +1,7 @@
1
- import { t as isErrorWithCode } from "./error-CxiNRw9A.mjs";
1
+ import { t as isErrorWithCode } from "./error-UWg8a0Ma.mjs";
2
2
  import stream from "stream";
3
3
  import util from "util";
4
- import "concurrently";
5
4
  import { execa } from "execa";
6
- import { npmRunPath } from "npm-run-path";
7
5
  import npmWhich from "npm-which";
8
6
  //#region ../../src/utils/exec.ts
9
7
  var YarnSpamFilter = class extends stream.Transform {
@@ -21,7 +19,6 @@ var YarnWarningFilter = class extends stream.Transform {
21
19
  callback();
22
20
  }
23
21
  };
24
- npmRunPath({ cwd: import.meta.dirname });
25
22
  const runCommand = (command, args, { streamStdio, ...execaOptions } = {}) => {
26
23
  const subprocess = execa(command, args, {
27
24
  localDir: execaOptions?.localDir ?? import.meta.dirname,
@@ -1,12 +1,10 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_error = require("./error-CzNs0bXO.cjs");
2
+ const require_error = require("./error-C1BybmHW.cjs");
3
3
  let stream = require("stream");
4
4
  stream = require_rolldown_runtime.__toESM(stream, 1);
5
5
  let util = require("util");
6
6
  util = require_rolldown_runtime.__toESM(util, 1);
7
- require("concurrently");
8
7
  let execa = require("execa");
9
- let npm_run_path = require("npm-run-path");
10
8
  let npm_which = require("npm-which");
11
9
  npm_which = require_rolldown_runtime.__toESM(npm_which, 1);
12
10
  //#region ../../src/utils/exec.ts
@@ -25,7 +23,6 @@ var YarnWarningFilter = class extends stream.default.Transform {
25
23
  callback();
26
24
  }
27
25
  };
28
- (0, npm_run_path.npmRunPath)({ cwd: __dirname });
29
26
  const runCommand = (command, args, { streamStdio, ...execaOptions } = {}) => {
30
27
  const subprocess = (0, execa.execa)(command, args, {
31
28
  localDir: execaOptions?.localDir ?? __dirname,
@@ -1,4 +1,4 @@
1
- import { t as isErrorWithCode } from "./error-CxiNRw9A.mjs";
1
+ import { t as isErrorWithCode } from "./error-UWg8a0Ma.mjs";
2
2
  import fs from "fs-extra";
3
3
  //#region ../../src/utils/fs.ts
4
4
  const pathExists = async (filePath) => {
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_error = require("./error-CzNs0bXO.cjs");
2
+ const require_error = require("./error-C1BybmHW.cjs");
3
3
  let fs_extra = require("fs-extra");
4
4
  fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
5
5
  //#region ../../src/utils/fs.ts
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-DMONyZI2.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-DKqd7R1V.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 };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { t as pathExists } from "./fs-BrQNZY8y.mjs";
2
+ import { t as pathExists } from "./fs-Cjt5C6XD.mjs";
3
3
  import fs from "fs-extra";
4
4
  import git, { findRoot } from "isomorphic-git";
5
5
  import path from "path";
@@ -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,
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_fs = require("./fs-DS2eIMxA.cjs");
2
+ const require_fs = require("./fs-CuSraRTN.cjs");
3
3
  let fs_extra = require("fs-extra");
4
4
  fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
5
5
  let isomorphic_git = require("isomorphic-git");
@@ -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-DMONyZI2.cjs");
3
- const require_github = require("../github-AhCiyYZt.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-DKqd7R1V.mjs";
2
- import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-DsrERrG3.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-DKqd7R1V.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-DMONyZI2.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,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_buildkite = require("./buildkite-z4owathk.cjs");
2
+ const require_buildkite = require("./buildkite-BJecUBqL.cjs");
3
3
  const require_cdk_index = require("./cdk/index.cjs");
4
- const require_git = require("./git-DMONyZI2.cjs");
5
- const require_github = require("./github-AhCiyYZt.cjs");
6
- const require_net = require("./net-HILKQTAq.cjs");
7
- const require_rolldown = require("./rolldown-CV08omMx.cjs");
4
+ const require_git = require("./git-CSGc8r3Q.cjs");
5
+ const require_github = require("./github-CuWb88m1.cjs");
6
+ const require_net = require("./net-C_4_EBsp.cjs");
7
+ const require_rolldown = require("./rolldown-5_nTstpD.cjs");
8
8
  Object.defineProperty(exports, "Buildkite", {
9
9
  enumerable: true,
10
10
  get: function() {
package/lib/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { t as buildkite_exports } from "./buildkite-C7bwlxiU.mjs";
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-DKqd7R1V.mjs";
4
- import { t as github_exports } from "./github-DsrERrG3.mjs";
5
- import { t as net_exports } from "./net-Bf2HV_vG.mjs";
6
- import { t as rolldown_exports } from "./rolldown-CH9krqYt.mjs";
3
+ import { t as git_exports } from "./git-BygvGOZr.mjs";
4
+ import { t as github_exports } from "./github-BLyV25Ac.mjs";
5
+ import { t as net_exports } from "./net-D2gFEDNr.mjs";
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/lib/net/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_net = require("../net-HILKQTAq.cjs");
2
+ const require_net = require("../net-C_4_EBsp.cjs");
3
3
  exports.waitFor = require_net.waitFor;
package/lib/net/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as waitFor } from "../net-Bf2HV_vG.mjs";
1
+ import { n as waitFor } from "../net-D2gFEDNr.mjs";
2
2
  export { waitFor };
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_exec = require("./exec-DCUB5Shx.cjs");
2
+ const require_exec = require("./exec-CITZpaVY.cjs");
3
3
  let net = require("net");
4
4
  net = require_rolldown_runtime.__toESM(net, 1);
5
5
  //#region src/net/compose.ts
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { t as createExec } from "./exec-Csi1HI7c.mjs";
2
+ import { t as createExec } from "./exec-C5tC2_a5.mjs";
3
3
  import net from "net";
4
4
  //#region src/net/compose.ts
5
5
  const portStringToNumber = (portString) => {
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_rolldown = require("../rolldown-CV08omMx.cjs");
2
+ const require_rolldown = require("../rolldown-5_nTstpD.cjs");
3
3
  exports.lambdaAsset = require_rolldown.lambdaAsset;
@@ -1,2 +1,2 @@
1
- import { n as lambdaAsset } from "../rolldown-CH9krqYt.mjs";
1
+ import { n as lambdaAsset } from "../rolldown-tZjDTuFI.mjs";
2
2
  export { lambdaAsset };
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
2
  const require_logging = require("./logging-BqpzZfsF.cjs");
3
- const require_exec = require("./exec-DCUB5Shx.cjs");
4
- const require_fs = require("./fs-DS2eIMxA.cjs");
3
+ const require_exec = require("./exec-CITZpaVY.cjs");
4
+ const require_fs = require("./fs-CuSraRTN.cjs");
5
5
  let fs_extra = require("fs-extra");
6
6
  fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
7
7
  let node_path = require("node:path");
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { t as log } from "./logging-BQNEupxh.mjs";
3
- import { t as createExec } from "./exec-Csi1HI7c.mjs";
4
- import { t as pathExists } from "./fs-BrQNZY8y.mjs";
3
+ import { t as createExec } from "./exec-C5tC2_a5.mjs";
4
+ import { t as pathExists } from "./fs-Cjt5C6XD.mjs";
5
5
  import { findPackageJSON } from "node:module";
6
6
  import fs from "fs-extra";
7
7
  import * as path from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skuba-lib/api",
3
- "version": "3.0.0-upgrade-pnpm-20261005223743",
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": {
@@ -61,15 +61,13 @@
61
61
  "@octokit/graphql": "^9.0.0",
62
62
  "@octokit/rest": "^22.0.0",
63
63
  "@octokit/types": "^18.0.0",
64
- "concurrently": "^10.0.0",
65
64
  "execa": "^9.6.1",
66
65
  "find-up": "^8.0.0",
67
66
  "fs-extra": "^11.0.0",
68
67
  "ignore": "^7.0.0",
69
68
  "isomorphic-git": "^1.37.6",
70
- "npm-run-path": "^6.0.0",
71
69
  "npm-which": "^3.0.1",
72
- "yaml": "^2.9.0",
70
+ "yaml": "^2.9.1",
73
71
  "zod": "^4.3.5"
74
72
  },
75
73
  "peerDependencies": {
@@ -83,6 +81,9 @@
83
81
  "engines": {
84
82
  "node": ">=22.14.0"
85
83
  },
84
+ "skuba": {
85
+ "version": "16.4.0"
86
+ },
86
87
  "scripts": {
87
88
  "build": "pnpm skuba build-package && ./scripts/fix-types.sh",
88
89
  "skuba": "node ../../lib/skuba",