Skip to content

Commit

Permalink
Fixed cjs path
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko committed Jul 11, 2023
1 parent 09feb02 commit a44787a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Changelog

### v3.2.1
### v3.2.1, v3.2.2

11.07.2022.

**Fixed**

- Added `"type": "module"` to the package.json [#143](https://github.com/Stanko/react-animate-height/issues/143)
- Added `"type": "module"` to the package.json [#143](https://github.com/Stanko/react-animate-height/issues/143) and hopefully fixed all import/require shenanigans.

---

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "react-animate-height",
"version": "3.2.1",
"version": "3.2.2",
"description": "Lightweight React component for animating height using CSS transitions.",
"main": "./dist/cjs/index.cjs",
"types": "./dist/esm/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./dist/esm/index.cjs",
"require": "./dist/cjs/index.js"
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
}
},
"author": "Stanko",
Expand All @@ -23,7 +23,7 @@
"scripts": {
"clean": "rm -rf dist",
"build:esm": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig-cjs.json",
"build:cjs": "tsc -p tsconfig-cjs.json && mv ./dist/cjs/index.js ./dist/cjs/index.cjs",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:docs",
"start": "esbuild docs/docs.tsx docs/docs.css --bundle --tsconfig=tsconfig-demo.json --servedir=docs --outdir=docs/react-animate-height",
"build:docs": "esbuild docs/docs.tsx --bundle --tsconfig=tsconfig-demo.json --outdir=docs --minify --sourcemap",
Expand Down

0 comments on commit a44787a

Please sign in to comment.