@skuba-lib/api 2.2.0-add-cdk-NodejsFunction-20260614035222 → 2.2.0-fix-docker-prune-20260615082053

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.
Files changed (37) hide show
  1. package/lib/buildkite/index.cjs +1 -1
  2. package/lib/buildkite/index.mjs +1 -1
  3. package/lib/{buildkite-DiYlcd9q.mjs → buildkite-DdGh6ljO.mjs} +1 -1
  4. package/lib/{buildkite-Dyd__LF3.cjs → buildkite-_FU8d_a-.cjs} +4 -4
  5. package/lib/cdk/index.cjs +8 -17
  6. package/lib/cdk/index.d.cts +5 -13
  7. package/lib/cdk/index.d.mts +5 -13
  8. package/lib/cdk/index.mjs +4 -18
  9. package/lib/{error-DwkbVu3p.cjs → error-BnrwrJEG.cjs} +2 -2
  10. package/lib/{exec-BsoJ4pFc.cjs → exec-Da3EoDZ1.cjs} +5 -5
  11. package/lib/git/index.cjs +1 -1
  12. package/lib/git/index.mjs +1 -1
  13. package/lib/{git-DEbnLMom.mjs → git-CmP3a9Z9.mjs} +1 -1
  14. package/lib/{git-CEnn1Qrs.cjs → git-D98vomnD.cjs} +8 -8
  15. package/lib/github/index.cjs +2 -2
  16. package/lib/github/index.mjs +2 -2
  17. package/lib/{github-Dq4RJqAX.mjs → github-BUEZ_y2Y.mjs} +2 -2
  18. package/lib/{github-CzH1PaKH.cjs → github-D12IboDc.cjs} +6 -6
  19. package/lib/index.cjs +11 -4
  20. package/lib/index.d.cts +5 -4
  21. package/lib/index.d.mts +5 -4
  22. package/lib/index.mjs +6 -5
  23. package/lib/net/index.cjs +1 -1
  24. package/lib/net/index.mjs +1 -1
  25. package/lib/{net-BGgnkCnN.cjs → net-4Ly1AB2r.cjs} +4 -4
  26. package/lib/{net-CBMRjy4b.mjs → net-Bi0PXcTy.mjs} +1 -1
  27. package/lib/{chunk-8H4AJuhK.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -1
  28. package/package.json +1 -27
  29. package/cdk/nodejsFunction/package.json +0 -6
  30. package/lib/cdk/bridges/rolldown.mjs +0 -49
  31. package/lib/cdk/nodejsFunction/index.cjs +0 -371
  32. package/lib/cdk/nodejsFunction/index.d.cts +0 -2
  33. package/lib/cdk/nodejsFunction/index.d.mts +0 -2
  34. package/lib/cdk/nodejsFunction/index.mjs +0 -365
  35. package/lib/index-DnMMX6Ji.d.cts +0 -32
  36. package/lib/index-DnMMX6Ji.d.mts +0 -32
  37. /package/lib/{chunk-DakpK96I.cjs → rolldown-runtime-DakpK96I.cjs} +0 -0
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_buildkite = require("../buildkite-Dyd__LF3.cjs");
2
+ const require_buildkite = require("../buildkite-_FU8d_a-.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-DiYlcd9q.mjs";
1
+ import { n as md, r as annotate } from "../buildkite-DdGh6ljO.mjs";
2
2
  export { annotate, md };
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "./chunk-8H4AJuhK.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { n as log } from "./error-BYLsj5YU.mjs";
3
3
  import { n as exec, r as hasCommand } from "./exec-CbhqWxN4.mjs";
4
4
  //#region src/buildkite/annotate.ts
@@ -1,6 +1,6 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
2
- const require_error = require("./error-DwkbVu3p.cjs");
3
- const require_exec = require("./exec-BsoJ4pFc.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
+ const require_error = require("./error-BnrwrJEG.cjs");
3
+ const require_exec = require("./exec-Da3EoDZ1.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 MAX_SIZE = 1024 * 1024;
@@ -37,7 +37,7 @@ const annotate = async (markdown, opts = {}) => {
37
37
  const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`")}\n\`\`\`` };
38
38
  //#endregion
39
39
  //#region src/buildkite/index.ts
40
- var buildkite_exports = /* @__PURE__ */ require_chunk.__exportAll({
40
+ var buildkite_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
41
41
  annotate: () => annotate,
42
42
  md: () => md
43
43
  });
package/lib/cdk/index.cjs CHANGED
@@ -1,22 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let node_module = require("node:module");
3
- //#region src/cdk/normaliseTemplate/index.ts
2
+ //#region src/cdk/index.ts
3
+ var cdk_exports = /* @__PURE__ */ require("../rolldown-runtime-DakpK96I.cjs").__exportAll({ normaliseTemplate: () => normaliseTemplate });
4
4
  const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/workerCurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `workerCurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
5
5
  const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
6
6
  //#endregion
7
- //#region src/cdk/index.ts
8
- const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
9
- let cached;
10
- const Cdk = {
11
- normaliseTemplate,
12
- /**
13
- * Lazily loads {@link NodejsFunction} on first access so that the optional
14
- * `aws-cdk-lib`, `constructs` and `rolldown` peer dependencies are only
15
- * required by consumers that actually use the construct.
16
- */
17
- get NodejsFunction() {
18
- return cached ??= require$1("@skuba-lib/api/cdk/nodejsFunction").NodejsFunction;
7
+ Object.defineProperty(exports, "cdk_exports", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return cdk_exports;
19
11
  }
20
- };
21
- //#endregion
22
- exports.Cdk = Cdk;
12
+ });
13
+ exports.normaliseTemplate = normaliseTemplate;
@@ -1,14 +1,6 @@
1
- import { i as ICommandHooks, n as NodejsFunctionProps, r as BundlingOptions, t as NodejsFunction } from "../index-DnMMX6Ji.cjs";
2
-
3
- //#region src/cdk/index.d.ts
4
- declare const Cdk: {
5
- normaliseTemplate: (template: object) => unknown;
6
- /**
7
- * Lazily loads {@link NodejsFunction} on first access so that the optional
8
- * `aws-cdk-lib`, `constructs` and `rolldown` peer dependencies are only
9
- * required by consumers that actually use the construct.
10
- */
11
- readonly NodejsFunction: typeof NodejsFunction;
12
- };
1
+ declare namespace index_d_exports {
2
+ export { normaliseTemplate };
3
+ }
4
+ declare const normaliseTemplate: (template: object) => unknown;
13
5
  //#endregion
14
- export { type BundlingOptions, Cdk, type ICommandHooks, type NodejsFunctionProps };
6
+ export { normaliseTemplate, index_d_exports as t };
@@ -1,14 +1,6 @@
1
- import { i as ICommandHooks, n as NodejsFunctionProps, r as BundlingOptions, t as NodejsFunction } from "../index-DnMMX6Ji.mjs";
2
-
3
- //#region src/cdk/index.d.ts
4
- declare const Cdk: {
5
- normaliseTemplate: (template: object) => unknown;
6
- /**
7
- * Lazily loads {@link NodejsFunction} on first access so that the optional
8
- * `aws-cdk-lib`, `constructs` and `rolldown` peer dependencies are only
9
- * required by consumers that actually use the construct.
10
- */
11
- readonly NodejsFunction: typeof NodejsFunction;
12
- };
1
+ declare namespace index_d_exports {
2
+ export { normaliseTemplate };
3
+ }
4
+ declare const normaliseTemplate: (template: object) => unknown;
13
5
  //#endregion
14
- export { type BundlingOptions, Cdk, type ICommandHooks, type NodejsFunctionProps };
6
+ export { normaliseTemplate, index_d_exports as t };
package/lib/cdk/index.mjs CHANGED
@@ -1,21 +1,7 @@
1
- import { createRequire } from "node:module";
2
- //#region src/cdk/normaliseTemplate/index.ts
1
+ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
2
+ //#region src/cdk/index.ts
3
+ var cdk_exports = /* @__PURE__ */ __exportAll({ normaliseTemplate: () => normaliseTemplate });
3
4
  const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/workerCurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `workerCurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
4
5
  const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
5
6
  //#endregion
6
- //#region src/cdk/index.ts
7
- const require = createRequire(import.meta.url);
8
- let cached;
9
- const Cdk = {
10
- normaliseTemplate,
11
- /**
12
- * Lazily loads {@link NodejsFunction} on first access so that the optional
13
- * `aws-cdk-lib`, `constructs` and `rolldown` peer dependencies are only
14
- * required by consumers that actually use the construct.
15
- */
16
- get NodejsFunction() {
17
- return cached ??= require("@skuba-lib/api/cdk/nodejsFunction").NodejsFunction;
18
- }
19
- };
20
- //#endregion
21
- export { Cdk };
7
+ export { normaliseTemplate, cdk_exports as t };
@@ -1,7 +1,7 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
2
  require("util");
3
3
  let zod_v4 = require("zod/v4");
4
- zod_v4 = require_chunk.__toESM(zod_v4, 1);
4
+ zod_v4 = require_rolldown_runtime.__toESM(zod_v4, 1);
5
5
  let node_util = require("node:util");
6
6
  //#region ../../src/utils/logging.ts
7
7
  const createLogger = ({ debug, prefixes = [], suffixes = [] }) => {
@@ -1,14 +1,14 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
2
- const require_error = require("./error-DwkbVu3p.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
+ const require_error = require("./error-BnrwrJEG.cjs");
3
3
  let stream = require("stream");
4
- stream = require_chunk.__toESM(stream, 1);
4
+ stream = require_rolldown_runtime.__toESM(stream, 1);
5
5
  let util = require("util");
6
- util = require_chunk.__toESM(util, 1);
6
+ util = require_rolldown_runtime.__toESM(util, 1);
7
7
  require("concurrently");
8
8
  let execa = require("execa");
9
9
  let npm_run_path = require("npm-run-path");
10
10
  let npm_which = require("npm-which");
11
- npm_which = require_chunk.__toESM(npm_which, 1);
11
+ npm_which = require_rolldown_runtime.__toESM(npm_which, 1);
12
12
  //#region ../../src/utils/exec.ts
13
13
  var YarnSpamFilter = class extends stream.default.Transform {
14
14
  silenced = false;
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-CEnn1Qrs.cjs");
2
+ const require_git = require("../git-D98vomnD.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-DEbnLMom.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-CmP3a9Z9.mjs";
2
2
  export { commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "./chunk-8H4AJuhK.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { t as isErrorWithCode } from "./error-BYLsj5YU.mjs";
3
3
  import fs from "fs-extra";
4
4
  import git, { findRoot } from "isomorphic-git";
@@ -1,15 +1,15 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
2
- const require_error = require("./error-DwkbVu3p.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
+ const require_error = require("./error-BnrwrJEG.cjs");
3
3
  let fs_extra = require("fs-extra");
4
- fs_extra = require_chunk.__toESM(fs_extra, 1);
4
+ fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
5
5
  let isomorphic_git = require("isomorphic-git");
6
- isomorphic_git = require_chunk.__toESM(isomorphic_git, 1);
6
+ isomorphic_git = require_rolldown_runtime.__toESM(isomorphic_git, 1);
7
7
  let path = require("path");
8
- path = require_chunk.__toESM(path, 1);
8
+ path = require_rolldown_runtime.__toESM(path, 1);
9
9
  let ignore = require("ignore");
10
- ignore = require_chunk.__toESM(ignore, 1);
10
+ ignore = require_rolldown_runtime.__toESM(ignore, 1);
11
11
  let isomorphic_git_http_node = require("isomorphic-git/http/node");
12
- isomorphic_git_http_node = require_chunk.__toESM(isomorphic_git_http_node, 1);
12
+ isomorphic_git_http_node = require_rolldown_runtime.__toESM(isomorphic_git_http_node, 1);
13
13
  //#region src/git/commit.ts
14
14
  /**
15
15
  * Writes a commit to the local Git repository.
@@ -347,7 +347,7 @@ const isFileGitIgnored = ({ absolutePath, gitRoot }) => isomorphic_git.default.i
347
347
  });
348
348
  //#endregion
349
349
  //#region src/git/index.ts
350
- var git_exports = /* @__PURE__ */ require_chunk.__exportAll({
350
+ var git_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
351
351
  commit: () => commit,
352
352
  commitAllChanges: () => commitAllChanges,
353
353
  currentBranch: () => currentBranch,
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_git = require("../git-CEnn1Qrs.cjs");
3
- const require_github = require("../github-CzH1PaKH.cjs");
2
+ const require_git = require("../git-D98vomnD.cjs");
3
+ const require_github = require("../github-D12IboDc.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-DEbnLMom.mjs";
2
- import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-Dq4RJqAX.mjs";
1
+ import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-CmP3a9Z9.mjs";
2
+ import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-BUEZ_y2Y.mjs";
3
3
  export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
@@ -1,6 +1,6 @@
1
- import { t as __exportAll } from "./chunk-8H4AJuhK.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { r as pluralise } from "./error-BYLsj5YU.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-DEbnLMom.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-CmP3a9Z9.mjs";
4
4
  import fs from "fs-extra";
5
5
  import path from "path";
6
6
  //#region src/github/octokit.ts
@@ -1,10 +1,10 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
2
- const require_error = require("./error-DwkbVu3p.cjs");
3
- const require_git = require("./git-CEnn1Qrs.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
+ const require_error = require("./error-BnrwrJEG.cjs");
3
+ const require_git = require("./git-D98vomnD.cjs");
4
4
  let fs_extra = require("fs-extra");
5
- fs_extra = require_chunk.__toESM(fs_extra, 1);
5
+ fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
6
6
  let path = require("path");
7
- path = require_chunk.__toESM(path, 1);
7
+ path = require_rolldown_runtime.__toESM(path, 1);
8
8
  //#region src/github/octokit.ts
9
9
  const createRestClient = async (options) => new (await (import("@octokit/rest"))).Octokit(options);
10
10
  const graphql = async (query, parameters) => (await import("@octokit/graphql")).graphql(query, parameters);
@@ -240,7 +240,7 @@ const uploadFileChanges = async ({ dir, branch, messageHeadline, messageBody, fi
240
240
  };
241
241
  //#endregion
242
242
  //#region src/github/index.ts
243
- var github_exports = /* @__PURE__ */ require_chunk.__exportAll({
243
+ var github_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
244
244
  apiTokenFromEnvironment: () => require_git.apiTokenFromEnvironment,
245
245
  buildNameFromEnvironment: () => require_git.buildNameFromEnvironment,
246
246
  createCheckRun: () => createCheckRun,
package/lib/index.cjs CHANGED
@@ -1,14 +1,21 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_buildkite = require("./buildkite-Dyd__LF3.cjs");
3
- const require_git = require("./git-CEnn1Qrs.cjs");
4
- const require_github = require("./github-CzH1PaKH.cjs");
5
- const require_net = require("./net-BGgnkCnN.cjs");
2
+ const require_buildkite = require("./buildkite-_FU8d_a-.cjs");
3
+ const require_cdk_index = require("./cdk/index.cjs");
4
+ const require_git = require("./git-D98vomnD.cjs");
5
+ const require_github = require("./github-D12IboDc.cjs");
6
+ const require_net = require("./net-4Ly1AB2r.cjs");
6
7
  Object.defineProperty(exports, "Buildkite", {
7
8
  enumerable: true,
8
9
  get: function() {
9
10
  return require_buildkite.buildkite_exports;
10
11
  }
11
12
  });
13
+ Object.defineProperty(exports, "Cdk", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return require_cdk_index.cdk_exports;
17
+ }
18
+ });
12
19
  Object.defineProperty(exports, "Git", {
13
20
  enumerable: true,
14
21
  get: function() {
package/lib/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { t as index_d_exports } from "./index-CNxgBJm_.cjs";
2
- import { t as index_d_exports$1 } from "./index-C9WMO_Y9.cjs";
3
- import { t as index_d_exports$2 } from "./index-D4JUiy2k.cjs";
4
- import { t as index_d_exports$3 } from "./index-Kyp8ZCwF.cjs";
5
- export { index_d_exports as Buildkite, index_d_exports$1 as Git, index_d_exports$2 as GitHub, index_d_exports$3 as Net };
2
+ import { t as index_d_exports$1 } from "./cdk/index.cjs";
3
+ import { t as index_d_exports$2 } from "./index-C9WMO_Y9.cjs";
4
+ import { t as index_d_exports$3 } from "./index-D4JUiy2k.cjs";
5
+ import { t as index_d_exports$4 } from "./index-Kyp8ZCwF.cjs";
6
+ export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net };
package/lib/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { t as index_d_exports } from "./index-CNxgBJm_.mjs";
2
- import { t as index_d_exports$1 } from "./index-C9WMO_Y9.mjs";
3
- import { t as index_d_exports$2 } from "./index-DbjgHTTm.mjs";
4
- import { t as index_d_exports$3 } from "./index-Kyp8ZCwF.mjs";
5
- export { index_d_exports as Buildkite, index_d_exports$1 as Git, index_d_exports$2 as GitHub, index_d_exports$3 as Net };
2
+ import { t as index_d_exports$1 } from "./cdk/index.mjs";
3
+ import { t as index_d_exports$2 } from "./index-C9WMO_Y9.mjs";
4
+ import { t as index_d_exports$3 } from "./index-DbjgHTTm.mjs";
5
+ import { t as index_d_exports$4 } from "./index-Kyp8ZCwF.mjs";
6
+ export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net };
package/lib/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { t as buildkite_exports } from "./buildkite-DiYlcd9q.mjs";
2
- import { t as git_exports } from "./git-DEbnLMom.mjs";
3
- import { t as github_exports } from "./github-Dq4RJqAX.mjs";
4
- import { t as net_exports } from "./net-CBMRjy4b.mjs";
5
- export { buildkite_exports as Buildkite, git_exports as Git, github_exports as GitHub, net_exports as Net };
1
+ import { t as buildkite_exports } from "./buildkite-DdGh6ljO.mjs";
2
+ import { t as cdk_exports } from "./cdk/index.mjs";
3
+ import { t as git_exports } from "./git-CmP3a9Z9.mjs";
4
+ import { t as github_exports } from "./github-BUEZ_y2Y.mjs";
5
+ import { t as net_exports } from "./net-Bi0PXcTy.mjs";
6
+ export { buildkite_exports as Buildkite, cdk_exports as Cdk, git_exports as Git, github_exports as GitHub, net_exports as Net };
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-BGgnkCnN.cjs");
2
+ const require_net = require("../net-4Ly1AB2r.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-CBMRjy4b.mjs";
1
+ import { n as waitFor } from "../net-Bi0PXcTy.mjs";
2
2
  export { waitFor };
@@ -1,7 +1,7 @@
1
- const require_chunk = require("./chunk-DakpK96I.cjs");
2
- const require_exec = require("./exec-BsoJ4pFc.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
2
+ const require_exec = require("./exec-Da3EoDZ1.cjs");
3
3
  let net = require("net");
4
- net = require_chunk.__toESM(net, 1);
4
+ net = require_rolldown_runtime.__toESM(net, 1);
5
5
  //#region src/net/compose.ts
6
6
  const portStringToNumber = (portString) => {
7
7
  const port = Number(portString);
@@ -63,7 +63,7 @@ const waitFor = async ({ host = "localhost", port, resolveCompose = false, timeo
63
63
  };
64
64
  //#endregion
65
65
  //#region src/net/index.ts
66
- var net_exports = /* @__PURE__ */ require_chunk.__exportAll({ waitFor: () => waitFor });
66
+ var net_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({ waitFor: () => waitFor });
67
67
  //#endregion
68
68
  Object.defineProperty(exports, "net_exports", {
69
69
  enumerable: true,
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "./chunk-8H4AJuhK.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
2
  import { t as createExec } from "./exec-CbhqWxN4.mjs";
3
3
  import net from "net";
4
4
  //#region src/net/compose.ts
@@ -1,4 +1,3 @@
1
- import "node:module";
2
1
  //#region \0rolldown/runtime.js
3
2
  var __defProp = Object.defineProperty;
4
3
  var __exportAll = (all, no_symbols) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skuba-lib/api",
3
- "version": "2.2.0-add-cdk-NodejsFunction-20260614035222",
3
+ "version": "2.2.0-fix-docker-prune-20260615082053",
4
4
  "description": "Node.js development API for skuba",
5
5
  "homepage": "https://github.com/seek-oss/skuba#readme",
6
6
  "bugs": {
@@ -26,10 +26,6 @@
26
26
  "import": "./lib/cdk/index.mjs",
27
27
  "require": "./lib/cdk/index.cjs"
28
28
  },
29
- "./cdk/nodejsFunction": {
30
- "import": "./lib/cdk/nodejsFunction/index.mjs",
31
- "require": "./lib/cdk/nodejsFunction/index.cjs"
32
- },
33
29
  "./git": {
34
30
  "import": "./lib/git/index.mjs",
35
31
  "require": "./lib/git/index.cjs"
@@ -66,30 +62,8 @@
66
62
  "isomorphic-git": "^1.37.6",
67
63
  "npm-run-path": "^6.0.0",
68
64
  "npm-which": "^3.0.1",
69
- "yaml": "^2.9.0",
70
65
  "zod": "^4.3.5"
71
66
  },
72
- "devDependencies": {
73
- "aws-cdk-lib": "^2.253.0",
74
- "constructs": "^10.0.17",
75
- "rolldown": "~1.0.0"
76
- },
77
- "peerDependencies": {
78
- "aws-cdk-lib": ">=2.130.0",
79
- "constructs": "^10.0.0",
80
- "rolldown": ">=1.0.0"
81
- },
82
- "peerDependenciesMeta": {
83
- "aws-cdk-lib": {
84
- "optional": true
85
- },
86
- "constructs": {
87
- "optional": true
88
- },
89
- "rolldown": {
90
- "optional": true
91
- }
92
- },
93
67
  "engines": {
94
68
  "node": ">=22.14.0"
95
69
  },
@@ -1,6 +0,0 @@
1
- {
2
- "type": "module",
3
- "main": "../../lib/cdk/nodejsFunction/index.cjs",
4
- "module": "../../lib/cdk/nodejsFunction/index.mjs",
5
- "types": "../../lib/cdk/nodejsFunction/index.d.cts"
6
- }
@@ -1,49 +0,0 @@
1
- import { writeFileSync } from "node:fs";
2
- import { join } from "node:path";
3
- import { pathToFileURL } from "node:url";
4
- import { rolldown } from "rolldown";
5
- //#region src/cdk/nodejsFunction/util.ts
6
- const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
7
- const BUNDLE_META_FILENAME = ".lambda-bundle-meta";
8
- const ESM_FORMATS = new Set([
9
- "es",
10
- "esm",
11
- "module"
12
- ]);
13
- const isEsmFormat = (format) => ESM_FORMATS.has(format ?? "");
14
- //#endregion
15
- //#region src/cdk/nodejsFunction/bridges/rolldown.mts
16
- const [configPath, entry, outputDir] = process.argv.slice(2, 5);
17
- if (!configPath || !entry || !outputDir) throw new Error("Expected arguments: <configPath> <entry> <outputDir>");
18
- const asRecord = (value) => isRecord(value) ? value : void 0;
19
- const asString = (value) => typeof value === "string" ? value : void 0;
20
- const userConfig = asRecord(asRecord(await import(pathToFileURL(configPath).href))?.default);
21
- if (!userConfig) throw new Error(`Config file must export a default config object: ${configPath}`);
22
- const rawOutput = userConfig.output;
23
- if (Array.isArray(rawOutput) && rawOutput.length !== 1) throw new Error("`output` must be a single output object: NodejsFunction emits a single index.js/index.mjs handler.");
24
- const baseRaw = asRecord(Array.isArray(rawOutput) ? rawOutput[0] : rawOutput) ?? {};
25
- if (baseRaw.preserveModules) throw new Error("`output.preserveModules` is not supported: NodejsFunction emits a single index.js/index.mjs handler.");
26
- if (baseRaw.entryFileNames !== void 0) throw new Error("`output.entryFileNames` is not supported: NodejsFunction names the handler index.js/index.mjs itself.");
27
- if (userConfig.input !== void 0) throw new Error("`input` is not supported: NodejsFunction sets the bundle entry itself.");
28
- const format = asString(baseRaw.format) ?? "es";
29
- const { file: _file, ...baseRest } = baseRaw;
30
- const { output: _output, ...userConfigRest } = userConfig;
31
- const inputOptions = {
32
- ...userConfigRest,
33
- input: entry
34
- };
35
- const outputOptions = {
36
- ...baseRest,
37
- format,
38
- dir: outputDir,
39
- entryFileNames: isEsmFormat(format) ? "index.mjs" : "index.js"
40
- };
41
- const bundle = await rolldown(inputOptions);
42
- try {
43
- await bundle.write(outputOptions);
44
- } finally {
45
- await bundle.close();
46
- }
47
- writeFileSync(join(outputDir, BUNDLE_META_FILENAME), JSON.stringify({ format }));
48
- //#endregion
49
- export {};