Skip to content

Commit

Permalink
Added type module to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko committed Jul 11, 2023
1 parent 3103b10 commit 09feb02
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

### v3.2.1

11.07.2022.

**Fixed**

- Added `"type": "module"` to the package.json [#143](https://github.com/Stanko/react-animate-height/issues/143)

---

### v3.2.0

10.07.2022.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs.js.map

Large diffs are not rendered by default.

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.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "react-animate-height",
"version": "3.2.0",
"version": "3.2.1",
"description": "Lightweight React component for animating height using CSS transitions.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"main": "./dist/cjs/index.cjs",
"types": "./dist/esm/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
".": {
"import": "./dist/esm/index.cjs",
"require": "./dist/cjs/index.js"
}
},
"author": "Stanko",
"homepage": "https://github.com/Stanko/react-animate-height",
Expand All @@ -25,7 +27,7 @@
"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",
"prepublishOnly": "npm run build",
"prepublishOnly": "npm run test && npm run build",
"start:test": "esbuild test/test.tsx test/test.css --bundle --tsconfig=tsconfig-demo.json --serve=8080 --servedir=test --outdir=test/output",
"test": "node test.js",
"cypress:run": "cypress run",
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { spawn } = require('node:child_process');
import { spawn } from 'node:child_process';

const server = spawn('npm', ['run', 'start:test']);

Expand Down

0 comments on commit 09feb02

Please sign in to comment.