Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.

fix: Write ESM build output to .mjs (#250)

Changed files
+8 -7
.changeset
packages
example-tada
graphqlsp
+5
.changeset/silent-gorillas-knock.md
···
+
---
+
'@0no-co/graphqlsp': patch
+
---
+
+
Update ESM build output to be written to a `.mjs` file extension rather than `.js`
-4
packages/example-tada/introspection.ts
···
{
"kind": "SCALAR",
"name": "Boolean"
-
},
-
{
-
"kind": "SCALAR",
-
"name": "Any"
}
],
"directives": []
+3 -3
packages/graphqlsp/package.json
···
"name": "@0no-co/graphqlsp",
"version": "1.4.1",
"description": "TypeScript LSP plugin that finds GraphQL documents in your code and provides hints and auto-generates types.",
-
"main": "./dist/graphqlsp.js",
-
"module": "./dist/graphqlsp.module.js",
+
"main": "./dist/graphqlsp",
+
"module": "./dist/graphqlsp.mjs",
"types": "./dist/graphqlsp.d.ts",
"exports": {
".": {
"types": "./dist/graphqlsp.d.ts",
-
"import": "./dist/graphqlsp.module.js",
+
"import": "./dist/graphqlsp.mjs",
"require": "./dist/graphqlsp.js",
"source": "./src/index.ts"
},