marcidb-client 0.0.3 → 0.0.4
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/README.md +1 -1
- package/bin/marci-generate-linux-x64 +0 -0
- package/bin/marci-generate-win32-x64.exe +0 -0
- package/bin.js +5 -5
- package/client/index.d.ts +1 -1
- package/client/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
Binary file
|
|
Binary file
|
package/bin.js
CHANGED
|
@@ -20,7 +20,7 @@ const COMMANDS = {
|
|
|
20
20
|
|
|
21
21
|
function help() {
|
|
22
22
|
console.log(`
|
|
23
|
-
|
|
23
|
+
marcidb <command> [options]
|
|
24
24
|
|
|
25
25
|
Commands:
|
|
26
26
|
generate [schema] [output] Generate TypeScript types from schema
|
|
@@ -28,15 +28,15 @@ Commands:
|
|
|
28
28
|
output — output directory (default: node_modules/marci-db/generated)
|
|
29
29
|
|
|
30
30
|
Examples:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
marcidb generate
|
|
32
|
+
marcidb generate schema.marci
|
|
33
|
+
marcidb generate schema.marci node_modules/.marcidb/client
|
|
34
34
|
`);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function cmdGenerate(args) {
|
|
38
38
|
const schema = args[0] ?? "schema.marci";
|
|
39
|
-
const output = args[1] ?? "node_modules/.
|
|
39
|
+
const output = args[1] ?? "node_modules/.marcidb/client";
|
|
40
40
|
|
|
41
41
|
const key = `${os.platform()}-${os.arch()}`;
|
|
42
42
|
const name = BINS[key];
|
package/client/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '.
|
|
1
|
+
export * from '.marcidb/client'
|
package/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '.
|
|
1
|
+
export * from '.marcidb/client'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marcidb-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "den59k"
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"url": "git+https://github.com/den59k/marci-db.git"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "bunup src/index.ts --external .
|
|
14
|
+
"build": "bunup src/index.ts --external .marcidb/client --out-dir runtime"
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
|
-
"
|
|
17
|
+
"marcidb": "bin.js"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"bin/",
|