Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @graphql-hive/importer for importing configs and transpiling TypeScript files #8280

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/@graphql-mesh_cli-8280-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@graphql-mesh/cli": patch
---
dependencies updates:
- Added dependency [`get-tsconfig@^4.7.6` ↗︎](https://www.npmjs.com/package/get-tsconfig/v/4.7.6) (to `dependencies`)
- Added dependency [`jiti@^2.0.0` ↗︎](https://www.npmjs.com/package/jiti/v/2.0.0) (to `dependencies`)
- Removed dependency [`@graphql-mesh/include@^0.2.10` ↗︎](https://www.npmjs.com/package/@graphql-mesh/include/v/0.2.10) (from `dependencies`)
6 changes: 6 additions & 0 deletions .changeset/@graphql-mesh_compose-cli-8280-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@graphql-mesh/compose-cli": patch
---
dependencies updates:
- Added dependency [`@graphql-hive/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-hive/importer/v/1.0.0) (to `dependencies`)
- Removed dependency [`@graphql-mesh/include@^0.2.10` ↗︎](https://www.npmjs.com/package/@graphql-mesh/include/v/0.2.10) (from `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/hip-cougars-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/cli': patch
---

TypeScript importer and transpiler is now built-in
5 changes: 5 additions & 0 deletions .changeset/nine-trainers-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/compose-cli': patch
---

Use `@graphql-hive/importer` for importing configs and transpiling TypeScript files
2 changes: 1 addition & 1 deletion e2e/tsconfig-paths/tsconfig-paths.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { compose } = createTenv(__dirname);
it('should compose', async () => {
const proc = await compose({
env: {
MESH_INCLUDE_TSCONFIG_SEARCH_PATH: 'tsconfig-paths.tsconfig.json',
HIVE_IMPORTER_TSCONFIG_SEARCH_PATH: 'tsconfig-paths.tsconfig.json',
},
});
expect(proc.result).toMatchSnapshot();
Expand Down
2 changes: 1 addition & 1 deletion packages/compose-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"dependencies": {
"@commander-js/extra-typings": "^13.0.0",
"@graphql-hive/importer": "1.0.0-alpha-b9f05248109748ed53b5a1ae7465317fc9fcd3ec",
"@graphql-mesh/fusion-composition": "^0.7.17",
"@graphql-mesh/include": "^0.2.10",
"@graphql-mesh/string-interpolation": "^0.5.7",
"@graphql-mesh/types": "^0.103.11",
"@graphql-mesh/utils": "^0.103.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/compose-cli/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function run({
version,
}: RunOptions): Promise<void | never> {
module.register(
'@graphql-mesh/include/hooks',
'@graphql-hive/importer/hooks',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore bob will complain when bundling for cjs
import.meta.url,
Expand Down
148 changes: 0 additions & 148 deletions packages/include/CHANGELOG.md

This file was deleted.

74 changes: 0 additions & 74 deletions packages/include/package.json

This file was deleted.

Loading
Loading