dbmate 2.1.0 → 2.2.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/dist/cli.js +5 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/resolveBinary.d.ts.map +1 -1
- package/dist/resolveBinary.js +9 -6
- package/dist/resolveBinary.js.map +1 -1
- package/package.json +8 -9
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
|
+
const resolveBinary_js_1 = require("./resolveBinary.js");
|
|
6
|
+
const child = (0, node_child_process_1.spawnSync)((0, resolveBinary_js_1.resolveBinary)(), process.argv.slice(2), {
|
|
5
7
|
stdio: "inherit",
|
|
6
8
|
});
|
|
7
9
|
process.exit(child.status ?? 0);
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AACA,2DAA+C;AAE/C,yDAAmD;AAEnD,MAAM,KAAK,GAAG,IAAA,8BAAS,EAAC,IAAA,gCAAa,GAAE,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"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveBinary = void 0;
|
|
4
|
+
const resolveBinary_js_1 = require("./resolveBinary.js");
|
|
5
|
+
Object.defineProperty(exports, "resolveBinary", { enumerable: true, get: function () { return resolveBinary_js_1.resolveBinary; } });
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AAE1C,8FAFA,gCAAa,OAEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBinary.d.ts","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBinary.d.ts","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"AAEA;;KAEK;AACL,wBAAgB,aAAa,IAAI,MAAM,CAkBtC"}
|
package/dist/resolveBinary.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveBinary = void 0;
|
|
4
|
+
const node_process_1 = require("node:process");
|
|
3
5
|
/**
|
|
4
6
|
* Resolve path to dbmate for the current platform
|
|
5
7
|
* */
|
|
6
|
-
|
|
7
|
-
const ext = platform === "win32" ? ".exe" : "";
|
|
8
|
-
const path = `@dbmate/${platform}-${arch}/bin/dbmate${ext}`;
|
|
8
|
+
function resolveBinary() {
|
|
9
|
+
const ext = node_process_1.platform === "win32" ? ".exe" : "";
|
|
10
|
+
const path = `@dbmate/${node_process_1.platform}-${node_process_1.arch}/bin/dbmate${ext}`;
|
|
9
11
|
try {
|
|
10
|
-
return
|
|
12
|
+
return require.resolve(path);
|
|
11
13
|
}
|
|
12
14
|
catch (err) {
|
|
13
15
|
if (err != undefined &&
|
|
@@ -21,4 +23,5 @@ export function resolveBinary() {
|
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
}
|
|
26
|
+
exports.resolveBinary = resolveBinary;
|
|
24
27
|
//# sourceMappingURL=resolveBinary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../src/resolveBinary.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C;;KAEK;AACL,SAAgB,aAAa;IAC3B,MAAM,GAAG,GAAG,uBAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,IAAI,GAAG,WAAW,uBAAQ,IAAI,mBAAI,cAAc,GAAG,EAAE,CAAC;IAE5D,IAAI;QACF,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9B;IAAC,OAAO,GAAG,EAAE;QACZ,IACE,GAAG,IAAI,SAAS;YAChB,OAAO,GAAG,KAAK,QAAQ;YACvB,MAAM,IAAI,GAAG;YACb,GAAG,CAAC,IAAI,KAAK,kBAAkB,EAC/B;YACA,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,GAAG,CAAC,CAAC;SAC7D;aAAM;YACL,MAAM,GAAG,CAAC;SACX;KACF;AACH,CAAC;AAlBD,sCAkBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbmate",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A lightweight, framework-agnostic database migration tool",
|
|
5
5
|
"repository": "https://github.com/amacneil/dbmate",
|
|
6
6
|
"homepage": "https://github.com/amacneil/dbmate#readme",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"schema",
|
|
16
16
|
"sqlite"
|
|
17
17
|
],
|
|
18
|
-
"type": "module",
|
|
19
18
|
"bin": "./dist/cli.js",
|
|
20
19
|
"main": "./dist/index.js",
|
|
21
20
|
"files": [
|
|
@@ -25,12 +24,12 @@
|
|
|
25
24
|
"build": "tsc --build"
|
|
26
25
|
},
|
|
27
26
|
"optionalDependencies": {
|
|
28
|
-
"@dbmate/linux-ia32": "2.
|
|
29
|
-
"@dbmate/linux-x64": "2.
|
|
30
|
-
"@dbmate/linux-arm": "2.
|
|
31
|
-
"@dbmate/linux-arm64": "2.
|
|
32
|
-
"@dbmate/darwin-x64": "2.
|
|
33
|
-
"@dbmate/darwin-arm64": "2.
|
|
34
|
-
"@dbmate/win32-x64": "2.
|
|
27
|
+
"@dbmate/linux-ia32": "2.2.0",
|
|
28
|
+
"@dbmate/linux-x64": "2.2.0",
|
|
29
|
+
"@dbmate/linux-arm": "2.2.0",
|
|
30
|
+
"@dbmate/linux-arm64": "2.2.0",
|
|
31
|
+
"@dbmate/darwin-x64": "2.2.0",
|
|
32
|
+
"@dbmate/darwin-arm64": "2.2.0",
|
|
33
|
+
"@dbmate/win32-x64": "2.2.0"
|
|
35
34
|
}
|
|
36
35
|
}
|