Skip to content

Commit

Permalink
Remove CJS support
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Dec 26, 2024
1 parent a366b60 commit 3a0e7fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-cars-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bright": major
---

Remove CJS support. [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
9 changes: 5 additions & 4 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "bright",
"version": "0.8.6",
"type": "module",
"module": "./dist/index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"repository": "https://github.com/code-hike/bright",
"homepage": "https://bright.codehike.org",
Expand All @@ -12,11 +13,11 @@
"dist/**"
],
"scripts": {
"build": "tsup src/index.tsx --format esm,cjs --dts",
"watch": "tsup src/index.tsx --format esm,cjs --watch --dts"
"build": "tsup src/index.tsx --format esm --dts",
"watch": "tsup src/index.tsx --format esm --watch --dts"
},
"dependencies": {
"@code-hike/lighter": "^1.0.0",
"@code-hike/lighter": "^1.0.2",
"server-only": "^0.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion web/app/test/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export default function Page() {
)
}

export const runtime = "edge"
// export const runtime = "edge"

0 comments on commit 3a0e7fd

Please sign in to comment.