@baeta/plugin-graphql 0.0.15 → 0.0.16
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 +10 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/package.json +23 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @baeta/plugin-graphql
|
|
2
2
|
|
|
3
|
+
## 0.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#25](https://github.com/andreisergiu98/baeta/pull/25) [`c2c5875`](https://github.com/andreisergiu98/baeta/commit/c2c5875f8356e166f34a20b3e4384f9bce093e61) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - refactor cli and plugins
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c2c5875`](https://github.com/andreisergiu98/baeta/commit/c2c5875f8356e166f34a20b3e4384f9bce093e61)]:
|
|
10
|
+
- @baeta/generator-sdk@0.0.2
|
|
11
|
+
- @baeta/generator@0.0.15
|
|
12
|
+
|
|
3
13
|
## 0.0.15
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// index.ts
|
|
8
|
-
var
|
|
8
|
+
var _generatorsdk = require('@baeta/generator-sdk');
|
|
9
9
|
|
|
10
10
|
// lib/codegen.ts
|
|
11
11
|
|
|
@@ -867,17 +867,17 @@ async function generate(options) {
|
|
|
867
867
|
...output,
|
|
868
868
|
cache
|
|
869
869
|
});
|
|
870
|
-
return new (0,
|
|
870
|
+
return new (0, _generatorsdk.File)(output.filename, result2, "graphql");
|
|
871
871
|
});
|
|
872
872
|
return Promise.all(promises);
|
|
873
873
|
}
|
|
874
874
|
|
|
875
875
|
// index.ts
|
|
876
|
-
var graphql_default =
|
|
876
|
+
var graphql_default = _generatorsdk.createPluginFactoryV1.call(void 0, {
|
|
877
877
|
name: "graphql",
|
|
878
|
-
watch: (
|
|
878
|
+
watch: (generatorOptions, pluginOptions) => {
|
|
879
879
|
return {
|
|
880
|
-
include:
|
|
880
|
+
include: pluginOptions.schemas,
|
|
881
881
|
ignore: []
|
|
882
882
|
};
|
|
883
883
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _baeta_generator_sdk from '@baeta/generator-sdk';
|
|
2
|
+
import { GeneratorOptions } from '@baeta/generator-sdk';
|
|
3
3
|
|
|
4
|
-
declare const _default: (config:
|
|
4
|
+
declare const _default: (config: GeneratorOptions) => _baeta_generator_sdk.GeneratorPluginV1<GeneratorOptions, {}>;
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// index.ts
|
|
8
|
-
import { createPluginFactoryV1 } from "@baeta/
|
|
8
|
+
import { createPluginFactoryV1 } from "@baeta/generator-sdk";
|
|
9
9
|
|
|
10
10
|
// lib/codegen.ts
|
|
11
|
-
import { File } from "@baeta/
|
|
11
|
+
import { File } from "@baeta/generator-sdk";
|
|
12
12
|
import { codegen as gqlCodegen } from "@graphql-codegen/core";
|
|
13
13
|
import { normalizeConfig, normalizeInstanceOrArray } from "@graphql-codegen/plugin-helpers";
|
|
14
14
|
import * as typescriptPlugin from "@graphql-codegen/typescript";
|
|
@@ -875,9 +875,9 @@ async function generate(options) {
|
|
|
875
875
|
// index.ts
|
|
876
876
|
var graphql_default = createPluginFactoryV1({
|
|
877
877
|
name: "graphql",
|
|
878
|
-
watch: (
|
|
878
|
+
watch: (generatorOptions, pluginOptions) => {
|
|
879
879
|
return {
|
|
880
|
-
include:
|
|
880
|
+
include: pluginOptions.schemas,
|
|
881
881
|
ignore: []
|
|
882
882
|
};
|
|
883
883
|
},
|
package/package.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/plugin-graphql",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"author": "Andrei Pampu <pampu.andrei@pm.me>",
|
|
3
|
+
"version": "0.0.16",
|
|
6
4
|
"homepage": "https://github.com/andreisergiu98/baeta#readme",
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/andreisergiu98/baeta/issues"
|
|
7
|
+
},
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "https://github.com/andreisergiu98/baeta.git",
|
|
10
11
|
"directory": "plugins/graphql"
|
|
11
12
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "Andrei Pampu <pampu.andrei@pm.me>",
|
|
15
15
|
"type": "module",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"package.json"
|
|
19
|
+
],
|
|
16
20
|
"scripts": {
|
|
17
21
|
"build": "tsup",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
22
|
+
"prepack": "prep",
|
|
23
|
+
"postpack": "prep --clean",
|
|
24
|
+
"types": "tsc --noEmit"
|
|
21
25
|
},
|
|
22
26
|
"dependencies": {
|
|
23
|
-
"@baeta/
|
|
24
|
-
"@baeta/plugin": "^0.0.14",
|
|
27
|
+
"@baeta/generator-sdk": "^0.0.2",
|
|
25
28
|
"@graphql-codegen/core": "^2.6.8",
|
|
26
29
|
"@graphql-codegen/plugin-helpers": "^3.1.2",
|
|
27
30
|
"@graphql-codegen/typescript": "^2.8.7",
|
|
@@ -33,13 +36,12 @@
|
|
|
33
36
|
"@graphql-tools/graphql-file-loader": "^7.5.14",
|
|
34
37
|
"@graphql-tools/json-file-loader": "^7.4.15",
|
|
35
38
|
"@graphql-tools/load": "^7.8.9",
|
|
36
|
-
"@graphql-tools/prisma-loader": "^7.2.
|
|
37
|
-
"@graphql-tools/url-loader": "^7.17.
|
|
39
|
+
"@graphql-tools/prisma-loader": "^7.2.53",
|
|
40
|
+
"@graphql-tools/url-loader": "^7.17.2",
|
|
38
41
|
"@graphql-tools/utils": "^9.1.4",
|
|
39
42
|
"auto-bind": "^5.0.1",
|
|
40
43
|
"change-case-all": "1.0.15",
|
|
41
|
-
"parse-filepath": "^1.0.2"
|
|
42
|
-
"tslib": "^2.4.1"
|
|
44
|
+
"parse-filepath": "^1.0.2"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
47
|
"@baeta/build-tools": "^0.0.0",
|
|
@@ -49,22 +51,22 @@
|
|
|
49
51
|
"typescript": "^4.9.4"
|
|
50
52
|
},
|
|
51
53
|
"peerDependencies": {
|
|
54
|
+
"@baeta/generator": "^0.0.15",
|
|
52
55
|
"graphql": "^16.6.0"
|
|
53
56
|
},
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
],
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18.0.0"
|
|
59
|
+
},
|
|
58
60
|
"publishConfig": {
|
|
59
61
|
"access": "public",
|
|
60
|
-
"types": "dist/index.d.ts",
|
|
61
62
|
"exports": {
|
|
62
63
|
".": {
|
|
63
64
|
"import": "./dist/index.js",
|
|
64
65
|
"require": "./dist/index.cjs",
|
|
65
66
|
"types": "./dist/index.d.ts"
|
|
66
67
|
}
|
|
67
|
-
}
|
|
68
|
+
},
|
|
69
|
+
"types": "dist/index.d.ts"
|
|
68
70
|
},
|
|
69
71
|
"exports": {
|
|
70
72
|
".": {
|