From 57a707810fbcb36aa17e52d62bba1cad4812b634 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Wed, 21 Feb 2024 10:10:16 +0000 Subject: [PATCH] Add gql.tada/lsp alias --- .gitignore | 1 + package.json | 8 ++++++++ pnpm-lock.yaml | 15 +++++++++++---- src/lsp/index.ts | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/lsp/index.ts diff --git a/.gitignore b/.gitignore index 93b9449a..ef858c7d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ package-lock.json .netlify/ /tsconfig.vitest-temp.json /cli +/lsp diff --git a/package.json b/package.json index 2cc8825b..bb102f8e 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "LICENSE.md", "README.md", "cli/", + "lsp/", "bin/", "dist/" ], @@ -32,10 +33,17 @@ "require": "./dist/gql-tada-cli.js", "source": "./src/cli/index.ts" }, + "./lsp": { + "types": "./dist/gql-tada-lsp.d.ts", + "import": "./dist/gql-tada-lsp.mjs", + "require": "./dist/gql-tada-lsp.js", + "source": "./src/lsp/index.ts" + }, "./package.json": "./package.json" }, "dependencies": { "@0no-co/graphql.web": "^1.0.4", + "@0no-co/graphqlsp": "^1.3.4", "@gql.tada/cli-utils": "workspace:*" }, "public": true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 69d716d0..ac4d0879 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,6 +15,9 @@ importers: '@0no-co/graphql.web': specifier: ^1.0.4 version: 1.0.4(graphql@16.8.1) + '@0no-co/graphqlsp': + specifier: ^1.3.4 + version: 1.3.4 '@gql.tada/cli-utils': specifier: workspace:* version: link:packages/cli-utils @@ -227,6 +230,14 @@ packages: - encoding dev: true + /@0no-co/graphqlsp@1.3.4: + resolution: {integrity: sha512-xIVgzECqzAjReuKzW9d7NVDb1HBfrkgZ1AxdqN/WfgPpVfbWKrXpDNJrbhNhtdRB0+wd6iF4FaEtFJA2QvnPDw==} + dependencies: + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + dev: false + /@0no-co/typescript.js@5.3.2-2: resolution: {integrity: sha512-IGQZZ7vcVD/GOUKLJckpQiq8F5raQZLR7kOVhxN5nHOywl1dB9EFMA7FJkyNoCEig7EkCb291X8FswMwwrz9yg==} dev: true @@ -5601,7 +5612,6 @@ packages: optional: true dependencies: whatwg-url: 5.0.0 - dev: true /node-releases@2.0.14: resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} @@ -7254,7 +7264,6 @@ packages: /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - dev: true /trim-lines@3.0.1: resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} @@ -7936,14 +7945,12 @@ packages: /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - dev: true /whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} dependencies: tr46: 0.0.3 webidl-conversions: 3.0.1 - dev: true /which-boxed-primitive@1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} diff --git a/src/lsp/index.ts b/src/lsp/index.ts new file mode 100644 index 00000000..cf296edd --- /dev/null +++ b/src/lsp/index.ts @@ -0,0 +1 @@ +export { default } from '@0no-co/graphqlsp';