Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgardosh committed Dec 6, 2022
1 parent 05b81f4 commit f0617b0
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 34 deletions.
7 changes: 4 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@graphql-mesh/cli",
"version": "0.80.4",
"type": "module",
"repository": {
"type": "git",
"url": "Urigo/graphql-mesh",
Expand Down Expand Up @@ -29,7 +30,8 @@
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
}
}
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
Expand Down Expand Up @@ -92,6 +94,5 @@
},
"typescript": {
"definition": "dist/typings/index.d.ts"
},
"type": "module"
}
}
6 changes: 3 additions & 3 deletions packages/handlers/neo4j/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@graphql-mesh/neo4j",
"version": "0.20.40",
"type": "module",
"repository": {
"type": "git",
"url": "Urigo/graphql-mesh",
Expand All @@ -26,7 +27,7 @@
},
"./package.json": "./package.json"
},
"typings": "dist/typings/index.d.ts",
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
},
Expand All @@ -52,6 +53,5 @@
},
"typescript": {
"definition": "dist/typings/index.d.ts"
},
"type": "module"
}
}
8 changes: 4 additions & 4 deletions packages/handlers/raml/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@graphql-mesh/raml",
"version": "0.8.38",
"type": "module",
"repository": {
"type": "git",
"url": "Urigo/graphql-mesh",
Expand Down Expand Up @@ -47,8 +48,7 @@
"cross-fetch"
]
},
"typescript": {
"definition": "dist/typings/index.d.ts"
},
"type": "module"
"typescript": {
"definition": "dist/typings/index.d.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { printSchemaWithDirectives } from '@graphql-tools/utils';
import { Response } from '@whatwg-node/fetch';
import { createServerAdapter } from '@whatwg-node/server';
import { execute, parse } from 'graphql';
import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI';
import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI.js';

const serverAdapter = createServerAdapter(request => {
if (request.url.endsWith('/test')) {
Expand Down
4 changes: 2 additions & 2 deletions packages/loaders/openapi/tests/query-arguments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { graphql, GraphQLSchema } from 'graphql';
import { Server } from 'http';
import { AddressInfo } from 'net';

import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI';
import { getServer } from './query_arguments_server';
import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI.js';
import { getServer } from './query_arguments_server.js';

let server: Server;
let createdSchema: GraphQLSchema;
Expand Down
28 changes: 18 additions & 10 deletions packages/plugins/hive/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{
"name": "@graphql-mesh/plugin-hive",
"version": "0.0.4",
"type": "module",
"repository": {
"type": "git",
"url": "Urigo/graphql-mesh",
"directory": "packages/plugins/hive"
},
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": {
"types": "./dist/typings/index.d.cts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
},
"default": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./*": {
"require": "./dist/*.js",
"import": "./dist/*.mjs"
}
"./package.json": "./package.json"
},
"typings": "dist/index.d.ts",
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
},
Expand All @@ -39,6 +47,6 @@
},
"sideEffects": false,
"typescript": {
"definition": "dist/index.d.ts"
"definition": "dist/typings/index.d.ts"
}
}
28 changes: 18 additions & 10 deletions packages/transforms/hive/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{
"name": "@graphql-mesh/transform-hive",
"version": "0.0.4",
"type": "module",
"repository": {
"type": "git",
"url": "Urigo/graphql-mesh",
"directory": "packages/transforms/hive"
},
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": {
"types": "./dist/typings/index.d.cts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
},
"default": {
"types": "./dist/typings/index.d.ts",
"default": "./dist/esm/index.js"
}
},
"./*": {
"require": "./dist/*.js",
"import": "./dist/*.mjs"
}
"./package.json": "./package.json"
},
"typings": "dist/index.d.ts",
"typings": "dist/typings/index.d.ts",
"peerDependencies": {
"graphql": "*"
},
Expand All @@ -38,6 +46,6 @@
},
"sideEffects": false,
"typescript": {
"definition": "dist/index.d.ts"
"definition": "dist/typings/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/utils/test/sanitize-name-for-graphql.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { removeClosedBrackets } from '../src/sanitize-name-for-graphql';
import { removeClosedBrackets } from '../src/sanitize-name-for-graphql.js';

it.each([
{ input: 'foo(bar)q', output: 'foobarq' },
Expand Down

0 comments on commit f0617b0

Please sign in to comment.