Initial code test
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy-internal (push) Has been cancelled

This commit is contained in:
chris committed 2026-08-26 11:51:58 -04:00
commit d4fae15f5c
1696 files changed
+271223

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env node
export {};
//# sourceMappingURL=cli.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
Generated Vendored Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env node
import { spawnSync } from "node:child_process";
import { resolveBinary } from "./resolveBinary.js";
const child = spawnSync(resolveBinary(), process.argv.slice(2), {
stdio: "inherit",
});
process.exit(child.status ?? 0);
//# sourceMappingURL=cli.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,KAAK,GAAG,SAAS,CAAC,aAAa,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IAC9D,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC;AACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC"}
+3
View File
@@ -0,0 +1,3 @@
import { resolveBinary } from "./resolveBinary.js";
export { resolveBinary };
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC"}
+3
View File
@@ -0,0 +1,3 @@
import { resolveBinary } from "./resolveBinary.js";
export { resolveBinary };
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC"}
+5
View File
@@ -0,0 +1,5 @@
/**
* Resolve path to dbmate for the current platform
* */
export declare function resolveBinary(): string;
//# sourceMappingURL=resolveBinary.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"resolveBinary.d.ts","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"AAKA;;KAEK;AACL,wBAAgB,aAAa,IAAI,MAAM,CAkBtC"}
+25
View File
@@ -0,0 +1,25 @@
import { createRequire } from "node:module";
import { arch, platform } from "node:process";
const require = createRequire(import.meta.url);
/**
* Resolve path to dbmate for the current platform
* */
export function resolveBinary() {
const ext = platform === "win32" ? ".exe" : "";
const path = `@dbmate/${platform}-${arch}/bin/dbmate${ext}`;
try {
return require.resolve(path);
}
catch (err) {
if (err != undefined &&
typeof err === "object" &&
"code" in err &&
err.code === "MODULE_NOT_FOUND") {
throw new Error(`Unable to locate dbmate binary '${path}'`);
}
else {
throw err;
}
}
}
//# sourceMappingURL=resolveBinary.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/C;;KAEK;AACL,MAAM,UAAU,aAAa;IAC3B,MAAM,GAAG,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,IAAI,GAAG,WAAW,QAAQ,IAAI,IAAI,cAAc,GAAG,EAAE,CAAC;IAE5D,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IACE,GAAG,IAAI,SAAS;YAChB,OAAO,GAAG,KAAK,QAAQ;YACvB,MAAM,IAAI,GAAG;YACb,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAC/B,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,GAAG,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC;AACH,CAAC"}