diff --git a/esbuild.config.js b/esbuild.config.js index 6a792fd8..6786a5ff 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -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, diff --git a/package.json b/package.json index 0388d1bb..e0f812b2 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",