@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 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 _plugin = require('@baeta/plugin');
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, _plugin.File)(output.filename, result2, "graphql");
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 = _plugin.createPluginFactoryV1.call(void 0, {
876
+ var graphql_default = _generatorsdk.createPluginFactoryV1.call(void 0, {
877
877
  name: "graphql",
878
- watch: (baetaConfig, pluginConfig) => {
878
+ watch: (generatorOptions, pluginOptions) => {
879
879
  return {
880
- include: pluginConfig.schemas,
880
+ include: pluginOptions.schemas,
881
881
  ignore: []
882
882
  };
883
883
  },
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as _baeta_config from '@baeta/config';
2
- import { GraphqlPluginOptions } from '@baeta/config';
1
+ import * as _baeta_generator_sdk from '@baeta/generator-sdk';
2
+ import { GeneratorOptions } from '@baeta/generator-sdk';
3
3
 
4
- declare const _default: (config: GraphqlPluginOptions) => _baeta_config.GeneratorPluginV1WithConfig<GraphqlPluginOptions, {}>;
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/plugin";
8
+ import { createPluginFactoryV1 } from "@baeta/generator-sdk";
9
9
 
10
10
  // lib/codegen.ts
11
- import { File } from "@baeta/plugin";
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: (baetaConfig, pluginConfig) => {
878
+ watch: (generatorOptions, pluginOptions) => {
879
879
  return {
880
- include: pluginConfig.schemas,
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.15",
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
- "bugs": {
13
- "url": "https://github.com/andreisergiu98/baeta/issues"
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
- "types": "tsc --noEmit",
19
- "prepack": "yarn prep",
20
- "postpack": "yarn prep --clean"
22
+ "prepack": "prep",
23
+ "postpack": "prep --clean",
24
+ "types": "tsc --noEmit"
21
25
  },
22
26
  "dependencies": {
23
- "@baeta/config": "^0.0.9",
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.52",
37
- "@graphql-tools/url-loader": "^7.17.1",
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
- "files": [
55
- "dist",
56
- "package.json"
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
  ".": {