@mo36924/graphql-plugin 5.0.69 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -65,7 +65,7 @@ const init = ({ typescript: ts })=>{
65
65
  };
66
66
  return {
67
67
  create (info) {
68
- const { path, schema } = graphql.getConfig();
68
+ const { path, schema } = graphql.getConfig(info.project.getCurrentDirectory());
69
69
  const languageService = info.languageService;
70
70
  if (!path) {
71
71
  return languageService;
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ const init = ({ typescript: ts })=>{
63
63
  };
64
64
  return {
65
65
  create (info) {
66
- const { path, schema } = getConfig();
66
+ const { path, schema } = getConfig(info.project.getCurrentDirectory());
67
67
  const languageService = info.languageService;
68
68
  if (!path) {
69
69
  return languageService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mo36924/graphql-plugin",
3
3
  "type": "module",
4
- "version": "5.0.69",
4
+ "version": "5.1.0",
5
5
  "description": "graphql-plugin",
6
6
  "author": "mo36924",
7
7
  "license": "MIT",
@@ -41,11 +41,11 @@
41
41
  "dist"
42
42
  ],
43
43
  "dependencies": {
44
- "@mo36924/graphql": "^5.0.68",
44
+ "@mo36924/graphql": "^5.1.0",
45
45
  "graphql": "^16.9.0",
46
46
  "graphql-language-service": "^5.3.0",
47
47
  "typescript": "^5.5.4",
48
48
  "vscode-languageserver-types": "^3.17.5"
49
49
  },
50
- "gitHead": "5e9a973df2dab3b8eedcc0c37f6f5f5716662aaf"
50
+ "gitHead": "ea78ce7e8fdbd686f9ef572f939d3fee1bcbd5e9"
51
51
  }