Skip to content

Commit

Permalink
Add exports section to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov committed Dec 13, 2024
1 parent cad95bb commit 555419a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/thirty-weeks-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"objection-graphql-resolver": patch
"orchid-graphql": patch
---

Add proper `exports` section to `package.json`. Allow native ESM import of this module.
9 changes: 7 additions & 2 deletions packages/objection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@
"author": "Ilya Semenov",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"src"
Expand Down
9 changes: 7 additions & 2 deletions packages/orchid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@
"author": "Ilya Semenov",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"source": "src/index.ts",
"files": [
"dist",
"src"
Expand Down

0 comments on commit 555419a

Please sign in to comment.