Skip to content

Commit

Permalink
fix: Write ESM build output to .mjs (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten authored Feb 29, 2024
1 parent 183e5f0 commit 22632a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-gorillas-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@0no-co/graphqlsp': patch
---

Update ESM build output to be written to a `.mjs` file extension rather than `.js`
4 changes: 0 additions & 4 deletions packages/example-tada/introspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,6 @@ const introspection = {
{
"kind": "SCALAR",
"name": "Boolean"
},
{
"kind": "SCALAR",
"name": "Any"
}
],
"directives": []
Expand Down
6 changes: 3 additions & 3 deletions packages/graphqlsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"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"
},
Expand Down

0 comments on commit 22632a5

Please sign in to comment.