Skip to content

Commit

Permalink
fix!: esm typescript support (#29)
Browse files Browse the repository at this point in the history
* fix!: esm typescript support

* docs: bump version

* format
  • Loading branch information
jollyjerr committed Oct 8, 2023
1 parent 816e76c commit 18bb87e
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.3]

## Changed

- Fix type definitions for ESM and formally remove cjs support
- Updated all dev dependencies and tooling

## [0.4.2]

## Changed
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.2",
"version": "0.4.3",
"description": "A component or hook to auto save controlled form values as they are updated",
"repository": "https://github.com/jollyjerr/react-autosave",
"author": "jollyjerr <jollyjerr@gmail.com>",
Expand All @@ -9,23 +9,25 @@
"files": [
"dist"
],
"main": "./dist/react-autosave.umd.cjs",
"module": "./dist/react-autosave.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/react-autosave.js",
"require": "./dist/react-autosave.umd.cjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/react-autosave.js"
}
}
},
"main": "./dist/react-autosave.js",
"module": "./dist/react-autosave.js",
"types": "./dist/index.d.ts",
"keywords": [
"react",
"autosave",
"form"
],
"scripts": {
"dev": "vite",
"build": "tsc --noEmit && vite build && tsc --emitDeclarationOnly",
"build": "tsc --noEmit && vite build",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src/**",
Expand Down Expand Up @@ -60,6 +62,7 @@
"react-dom": "^18.2.0",
"typescript": "^5.2.2",
"vite": "^4.4.11",
"vite-plugin-dts": "^3.6.0",
"vitest": "^0.34.6"
},
"peerDependencies": {
Expand Down

0 comments on commit 18bb87e

Please sign in to comment.