@baeta/plugin-graphql 0.0.17 → 0.0.18
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/CHANGELOG.md +11 -0
- package/dist/index.cjs +18 -20
- package/dist/index.d.ts +2 -3
- package/dist/index.js +19 -21
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @baeta/plugin-graphql
|
|
2
2
|
|
|
3
|
+
## 0.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - create cli sdk
|
|
8
|
+
release prisma plugin
|
|
9
|
+
update dependencies
|
|
10
|
+
refactor generator plugins
|
|
11
|
+
- Updated dependencies [[`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4)]:
|
|
12
|
+
- @baeta/generator-sdk@0.0.4
|
|
13
|
+
|
|
3
14
|
## 0.0.17
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -853,11 +853,6 @@ async function generate(options) {
|
|
|
853
853
|
contextType: rootConfig.contextType,
|
|
854
854
|
useTypeImports: true,
|
|
855
855
|
scalars: {
|
|
856
|
-
BigInt: "number",
|
|
857
|
-
Bytes: "Buffer",
|
|
858
|
-
DateTime: "Date",
|
|
859
|
-
Decimal: "number",
|
|
860
|
-
Json: "{}",
|
|
861
856
|
...rootConfig.scalars
|
|
862
857
|
}
|
|
863
858
|
}
|
|
@@ -873,20 +868,23 @@ async function generate(options) {
|
|
|
873
868
|
}
|
|
874
869
|
|
|
875
870
|
// index.ts
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
871
|
+
function graphqlPlugin() {
|
|
872
|
+
return _generatorsdk.createPluginV1.call(void 0, {
|
|
873
|
+
name: "graphql",
|
|
874
|
+
actionName: "GraphQL modules",
|
|
875
|
+
watch: (options) => {
|
|
876
|
+
return {
|
|
877
|
+
include: options.schemas,
|
|
878
|
+
ignore: []
|
|
879
|
+
};
|
|
880
|
+
},
|
|
881
|
+
generate: async (ctx, next) => {
|
|
882
|
+
const files = await generate(ctx.generatorOptions);
|
|
883
|
+
ctx.fileManager.add(...files);
|
|
884
|
+
return next();
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
}
|
|
890
888
|
|
|
891
889
|
|
|
892
|
-
exports.
|
|
890
|
+
exports.graphqlPlugin = graphqlPlugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as _baeta_generator_sdk from '@baeta/generator-sdk';
|
|
2
|
-
import { GeneratorOptions } from '@baeta/generator-sdk';
|
|
3
2
|
|
|
4
|
-
declare
|
|
3
|
+
declare function graphqlPlugin(): _baeta_generator_sdk.GeneratorPluginV1<{}>;
|
|
5
4
|
|
|
6
|
-
export {
|
|
5
|
+
export { graphqlPlugin };
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// index.ts
|
|
8
|
-
import {
|
|
8
|
+
import { createPluginV1 } from "@baeta/generator-sdk";
|
|
9
9
|
|
|
10
10
|
// lib/codegen.ts
|
|
11
11
|
import { File } from "@baeta/generator-sdk";
|
|
@@ -853,11 +853,6 @@ async function generate(options) {
|
|
|
853
853
|
contextType: rootConfig.contextType,
|
|
854
854
|
useTypeImports: true,
|
|
855
855
|
scalars: {
|
|
856
|
-
BigInt: "number",
|
|
857
|
-
Bytes: "Buffer",
|
|
858
|
-
DateTime: "Date",
|
|
859
|
-
Decimal: "number",
|
|
860
|
-
Json: "{}",
|
|
861
856
|
...rootConfig.scalars
|
|
862
857
|
}
|
|
863
858
|
}
|
|
@@ -873,20 +868,23 @@ async function generate(options) {
|
|
|
873
868
|
}
|
|
874
869
|
|
|
875
870
|
// index.ts
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
871
|
+
function graphqlPlugin() {
|
|
872
|
+
return createPluginV1({
|
|
873
|
+
name: "graphql",
|
|
874
|
+
actionName: "GraphQL modules",
|
|
875
|
+
watch: (options) => {
|
|
876
|
+
return {
|
|
877
|
+
include: options.schemas,
|
|
878
|
+
ignore: []
|
|
879
|
+
};
|
|
880
|
+
},
|
|
881
|
+
generate: async (ctx, next) => {
|
|
882
|
+
const files = await generate(ctx.generatorOptions);
|
|
883
|
+
ctx.fileManager.add(...files);
|
|
884
|
+
return next();
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
}
|
|
890
888
|
export {
|
|
891
|
-
|
|
889
|
+
graphqlPlugin
|
|
892
890
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/plugin-graphql",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"homepage": "https://github.com/andreisergiu98/baeta#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/andreisergiu98/baeta/issues"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"types": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@baeta/generator-sdk": "^0.0.
|
|
27
|
+
"@baeta/generator-sdk": "^0.0.4",
|
|
28
28
|
"@graphql-codegen/core": "^2.6.8",
|
|
29
29
|
"@graphql-codegen/plugin-helpers": "^3.1.2",
|
|
30
30
|
"@graphql-codegen/typescript": "^2.8.7",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@graphql-tools/graphql-file-loader": "^7.5.14",
|
|
37
37
|
"@graphql-tools/json-file-loader": "^7.4.15",
|
|
38
38
|
"@graphql-tools/load": "^7.8.9",
|
|
39
|
-
"@graphql-tools/prisma-loader": "^7.2.
|
|
40
|
-
"@graphql-tools/url-loader": "^7.17.
|
|
39
|
+
"@graphql-tools/prisma-loader": "^7.2.54",
|
|
40
|
+
"@graphql-tools/url-loader": "^7.17.3",
|
|
41
41
|
"@graphql-tools/utils": "^9.1.4",
|
|
42
42
|
"auto-bind": "^5.0.1",
|
|
43
43
|
"change-case-all": "1.0.15",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@baeta/build-tools": "^0.0.0",
|
|
48
|
+
"@baeta/tsconfig": "^0.0.0",
|
|
48
49
|
"@types/node": "^18.11.18",
|
|
49
50
|
"@types/parse-filepath": "1.0.0",
|
|
50
51
|
"graphql": "^16.6.0",
|
|
51
52
|
"typescript": "^4.9.4"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
|
-
"@baeta/generator": "^0.0.18",
|
|
55
55
|
"graphql": "^16.6.0"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|