@spooky-sync/cli 0.0.1-canary.27 → 0.0.1-canary.30
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 +3 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sp00ky CLI
|
|
2
2
|
|
|
3
3
|
Generate TypeScript and Dart types from SurrealDB schema files.
|
|
4
4
|
|
|
@@ -36,10 +36,10 @@ spooky --input schema.surql --output output.ts --format typescript
|
|
|
36
36
|
### Programmatic API
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import {
|
|
39
|
+
import { runSp00ky } from 'sp00ky-cli';
|
|
40
40
|
|
|
41
41
|
// Generate types
|
|
42
|
-
const output = await
|
|
42
|
+
const output = await runSp00ky({
|
|
43
43
|
input: 'path/to/schema.surql',
|
|
44
44
|
output: 'path/to/output.ts',
|
|
45
45
|
format: 'typescript', // or 'dart', 'json'
|
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.30",
|
|
4
4
|
"description": "Generate TypeScript/Dart types from SurrealDB schema files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/syncgen.cjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/mono424/
|
|
45
|
+
"url": "https://github.com/mono424/sp00ky.git",
|
|
46
46
|
"directory": "apps/cli"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"vitest": "^1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"optionalDependencies": {
|
|
59
|
-
"@spooky-sync/cli-darwin-arm64": "0.0.1-canary.
|
|
60
|
-
"@spooky-sync/cli-darwin-x64": "0.0.1-canary.
|
|
61
|
-
"@spooky-sync/cli-linux-arm64": "0.0.1-canary.
|
|
62
|
-
"@spooky-sync/cli-linux-x64": "0.0.1-canary.
|
|
63
|
-
"@spooky-sync/cli-win32-x64": "0.0.1-canary.
|
|
59
|
+
"@spooky-sync/cli-darwin-arm64": "0.0.1-canary.30",
|
|
60
|
+
"@spooky-sync/cli-darwin-x64": "0.0.1-canary.30",
|
|
61
|
+
"@spooky-sync/cli-linux-arm64": "0.0.1-canary.30",
|
|
62
|
+
"@spooky-sync/cli-linux-x64": "0.0.1-canary.30",
|
|
63
|
+
"@spooky-sync/cli-win32-x64": "0.0.1-canary.30"
|
|
64
64
|
}
|
|
65
65
|
}
|