@spooky-sync/cli 0.0.1-canary.37 → 0.0.1-canary.39
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/syncgen.cjs +1 -1
- package/dist/syncgen.js +6 -6
- package/package.json +6 -6
package/dist/syncgen.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("child_process"),a=require("util"),i=require("./resolve-binary-CFmJcXEj.cjs"),d=a.promisify(t.execFile);async function f(e){const n=i.findBinary(),r=[];r.push("--input",e.input),r.push("--output",e.output),e.format&&r.push("--format",e.format),e.pretty&&r.push("--pretty"),e.all&&r.push("--all"),e.noHeader&&r.push("--no-header"),e.append&&r.push("--append",e.append),e.modulesDir&&r.push("--modules-dir",e.modulesDir),e.mode&&r.push("--mode",e.mode),e.endpoint&&r.push("--endpoint",e.endpoint),e.secret&&r.push("--secret",e.secret),e.config&&r.push("--config",e.config);try{const{stdout:u,stderr:c}=await d(n,r);return c&&console.error(c),u}catch(u){throw new Error(`Syncgen failed: ${u.message}
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("child_process"),a=require("util"),i=require("./resolve-binary-CFmJcXEj.cjs"),d=a.promisify(t.execFile);async function f(e){const n=i.findBinary(),r=[];r.push("--input",e.input),r.push("--output",e.output),e.format&&r.push("--format",e.format),e.pretty&&r.push("--pretty"),e.all&&r.push("--all"),e.noHeader&&r.push("--no-header"),e.append&&r.push("--append",e.append),e.modulesDir&&r.push("--modules-dir",e.modulesDir),e.mode&&r.push("--mode",e.mode),e.endpoint&&r.push("--endpoint",e.endpoint),e.secret&&r.push("--secret",e.secret),e.config&&r.push("--config",e.config);try{const{stdout:u,stderr:c}=await d(n,r);return c&&console.error(c),u}catch(u){throw new Error(`Syncgen failed: ${u.message}`,{cause:u})}}exports.runSyncgen=f;
|
package/dist/syncgen.js
CHANGED
|
@@ -2,16 +2,16 @@ import { execFile as c } from "child_process";
|
|
|
2
2
|
import { promisify as d } from "util";
|
|
3
3
|
import { f as t } from "./resolve-binary-BYotYL89.js";
|
|
4
4
|
const i = d(c);
|
|
5
|
-
async function
|
|
5
|
+
async function s(e) {
|
|
6
6
|
const a = t(), r = [];
|
|
7
7
|
r.push("--input", e.input), r.push("--output", e.output), e.format && r.push("--format", e.format), e.pretty && r.push("--pretty"), e.all && r.push("--all"), e.noHeader && r.push("--no-header"), e.append && r.push("--append", e.append), e.modulesDir && r.push("--modules-dir", e.modulesDir), e.mode && r.push("--mode", e.mode), e.endpoint && r.push("--endpoint", e.endpoint), e.secret && r.push("--secret", e.secret), e.config && r.push("--config", e.config);
|
|
8
8
|
try {
|
|
9
|
-
const { stdout:
|
|
10
|
-
return
|
|
11
|
-
} catch (
|
|
12
|
-
throw new Error(`Syncgen failed: ${
|
|
9
|
+
const { stdout: u, stderr: f } = await i(a, r);
|
|
10
|
+
return f && console.error(f), u;
|
|
11
|
+
} catch (u) {
|
|
12
|
+
throw new Error(`Syncgen failed: ${u.message}`, { cause: u });
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
s as runSyncgen
|
|
17
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spooky-sync/cli",
|
|
3
|
-
"version": "0.0.1-canary.
|
|
3
|
+
"version": "0.0.1-canary.39",
|
|
4
4
|
"description": "Generate TypeScript/Dart types from SurrealDB schema files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/syncgen.cjs",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"vitest": "^1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@spooky-sync/cli-darwin-arm64": "0.0.1-canary.
|
|
62
|
-
"@spooky-sync/cli-darwin-x64": "0.0.1-canary.
|
|
63
|
-
"@spooky-sync/cli-linux-arm64": "0.0.1-canary.
|
|
64
|
-
"@spooky-sync/cli-linux-x64": "0.0.1-canary.
|
|
65
|
-
"@spooky-sync/cli-win32-x64": "0.0.1-canary.
|
|
61
|
+
"@spooky-sync/cli-darwin-arm64": "0.0.1-canary.39",
|
|
62
|
+
"@spooky-sync/cli-darwin-x64": "0.0.1-canary.39",
|
|
63
|
+
"@spooky-sync/cli-linux-arm64": "0.0.1-canary.39",
|
|
64
|
+
"@spooky-sync/cli-linux-x64": "0.0.1-canary.39",
|
|
65
|
+
"@spooky-sync/cli-win32-x64": "0.0.1-canary.39"
|
|
66
66
|
}
|
|
67
67
|
}
|