Skip to content

Commit

Permalink
i22: Fix Exports (#24)
Browse files Browse the repository at this point in the history
* i22: Export Path Fix

* update docs

* fix issues from module dec
  • Loading branch information
jollyjerr committed Dec 15, 2022
1 parent 4cfc8a2 commit ec86942
Show file tree
Hide file tree
Showing 7 changed files with 878 additions and 762 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
ignorePatterns: ['*.js', '*.cjs', 'dist/'],
parserOptions: {
ecmaFeatures: {
jsx: true,
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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.2]

## Changed

- Fixed export paths for production build

## [0.4.1] - 10-23-22

## Added
Expand Down
49 changes: 27 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"version": "0.4.1",
"version": "0.4.2",
"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>",
"license": "MIT",
"name": "react-autosave",
"type": "module",
"files": [
"dist"
],
"main": "./dist/react-autosave.umd.js",
"module": "./dist/react-autosave.es.js",
"main": "./dist/react-autosave.umd.cjs",
"module": "./dist/react-autosave.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/react-autosave.es.js",
"require": "./dist/react-autosave.umd.js"
"import": "./dist/react-autosave.js",
"require": "./dist/react-autosave.umd.cjs"
}
},
"keywords": [
Expand All @@ -33,30 +34,34 @@
"format:check": "prettier . --check",
"ci": "pnpm run lint && pnpm run format:check && CI=true pnpm run test:coverage && pnpm run build"
},
"dependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@testing-library/dom": "^8.17.1",
"@testing-library/dom": "^8.19.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.16",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"@vitejs/plugin-react": "^2.1.0",
"@vitest/coverage-c8": "^0.23.1",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.15",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@vitejs/plugin-react": "^3.0.0",
"@vitest/coverage-c8": "^0.25.8",
"c8": "^7.12.0",
"eslint": "^8.23.0",
"eslint-plugin-jest": "^27.0.3",
"eslint-plugin-react": "^7.31.8",
"eslint": "^8.29.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"jsdom": "^20.0.3",
"prettier": "^2.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.8.3",
"vite": "^3.1.0",
"vitest": "^0.23.1"
"typescript": "^4.9.4",
"vite": "^4.0.1",
"vitest": "^0.25.8"
},
"peerDependencies": {
"react": "^17.x.x || ^18.x.x",
Expand Down

0 comments on commit ec86942

Please sign in to comment.