diff --git a/.gitignore b/.gitignore index 7071101..396d768 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ index.tsx index.js index.js.map +index.cjs +index.cjs.map index.d.ts index.d.ts.map docs/demo.js diff --git a/package.json b/package.json index d3a0921..0a5e655 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@integreat-app/react-sticky-headroom", - "version": "2.0.0", + "version": "2.1.0", "engines": { "node": ">=18", "npm": ">=10" @@ -15,10 +15,17 @@ "files": [ "index.js", "index.js.map", + "index.cjs", + "index.cjs.map", "index.d.ts", "index.d.ts.map", "index.tsx" ], + "exports": { + "import": "./index.js", + "require": "./index.cjs", + "types": "./index.d.ts" + }, "publishConfig": { "access": "public" }, diff --git a/tools/build.ts b/tools/build.ts index 94efd68..6413dc5 100644 --- a/tools/build.ts +++ b/tools/build.ts @@ -23,6 +23,8 @@ function compile (fileNames: string[], options: CompilerOptions): Record