Skip to content

Commit

Permalink
fix(shared): order of exports
Browse files Browse the repository at this point in the history
Ensure types is exported before imports and require
  • Loading branch information
sdorra committed Sep 27, 2024
1 parent 9cbd057 commit 22a70c6
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
10 changes: 10 additions & 0 deletions .changeset/friendly-readers-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@content-collections/integrations": patch
"@content-collections/solid-start": patch
"@content-collections/remix-vite": patch
"@content-collections/core": patch
"@content-collections/next": patch
"@content-collections/vite": patch
---

Ensure types is exported before imports and require
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
Expand Down
7 changes: 4 additions & 3 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"description": "Utils for integrating Content Collections with other tools",
"version": "0.2.0",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"description": "Use content-collection with Next.js",
"version": "0.2.1",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/solid-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"scripts": {
Expand Down

0 comments on commit 22a70c6

Please sign in to comment.