Skip to content

Commit

Permalink
Merge pull request #1056 from repetere/fix-main-target-extension
Browse files Browse the repository at this point in the history
update file extension of main target to be importable and add correct…
  • Loading branch information
yawetse committed Nov 20, 2023
2 parents 8bb2d9e + 29e4df0 commit 2ddddab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esbuild.config.js
Expand Up @@ -123,7 +123,7 @@ void async function main(){
sourcemap:false,
platform:'node',
plugins: serverPlugins,
outfile:'dist/index.cjs.js'
outfile:'dist/index.cjs'
});
const esmBuild = await esbuild.build({
watch,
Expand Down
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "jsonx",
"version": "2.0.0",
"description": "React JSON Syntax - Construct React elements, JSX and HTML with JSON without transpilers. JSONX supports React Function and Class Components, React Lazy and Suspense Components, and full support for React Hooks",
"main": "dist/index.cjs.js",
"main": "dist/index.cjs",
"module": "build/index.js",
"esm": "dist/index.esm.js",
"browser": "dist/index.web.js",
Expand Down Expand Up @@ -97,6 +97,10 @@
"typedoc": "^0.24.1",
"typescript": "4.8.4"
},
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
},
"dependencies": {
"@hookform/error-message": "^2.0.0",
"create-react-class": "^15.7.0",
Expand Down

0 comments on commit 2ddddab

Please sign in to comment.