@soda-gql/config 0.2.0 → 0.3.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/README.md +4 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,8 +26,7 @@ export default defineConfig({
|
|
|
26
26
|
schemas: {
|
|
27
27
|
default: {
|
|
28
28
|
schema: "./schema.graphql",
|
|
29
|
-
|
|
30
|
-
scalars: "./src/graphql-system/scalars.ts",
|
|
29
|
+
inject: "./src/graphql-system/default.inject.ts",
|
|
31
30
|
},
|
|
32
31
|
},
|
|
33
32
|
});
|
|
@@ -44,13 +43,11 @@ export default defineConfig({
|
|
|
44
43
|
schemas: {
|
|
45
44
|
users: {
|
|
46
45
|
schema: "./schemas/users.graphql",
|
|
47
|
-
|
|
48
|
-
scalars: "./src/graphql-system/users/scalars.ts",
|
|
46
|
+
inject: "./src/graphql-system/users/users.inject.ts",
|
|
49
47
|
},
|
|
50
48
|
products: {
|
|
51
49
|
schema: "./schemas/products.graphql",
|
|
52
|
-
|
|
53
|
-
scalars: "./src/graphql-system/products/scalars.ts",
|
|
50
|
+
inject: "./src/graphql-system/products/products.inject.ts",
|
|
54
51
|
},
|
|
55
52
|
},
|
|
56
53
|
});
|
|
@@ -75,8 +72,7 @@ Each schema entry requires:
|
|
|
75
72
|
| Option | Type | Description |
|
|
76
73
|
|--------|------|-------------|
|
|
77
74
|
| `schema` | `string` | Path to GraphQL schema file |
|
|
78
|
-
| `
|
|
79
|
-
| `scalars` | `string` | Path to scalar definitions module |
|
|
75
|
+
| `inject` | `string \| { scalars: string; adapter?: string }` | Path to inject file or object with separate paths |
|
|
80
76
|
|
|
81
77
|
## Config File Formats
|
|
82
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soda-gql/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Centralized configuration loader and helpers for soda-gql tooling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"./package.json": "./package.json"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@soda-gql/common": "0.
|
|
52
|
+
"@soda-gql/common": "0.3.0",
|
|
53
53
|
"@swc/core": "^1.10.0",
|
|
54
54
|
"neverthrow": "^8.2.0",
|
|
55
55
|
"zod": "^4.1.11"
|