Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
lenwhite committed Oct 24, 2023
1 parent e4dd2e1 commit 1786e79
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@
"name": "zustand-rhf-sync",
"version": "0.0.2",
"description": "Syncs the state of react-hook-form and zustand so that changes in one is updated in the other",
"main": "index.js",
"author": "lenwhite",
"license": "MIT",
"dependencies": {
"react-hook-form": "^7.45.2",
"zustand": "^4.4.0"
},
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/lenwhite/zustand-rhf-sync.git"
},
"typings": "dist/index.d.ts",
"files": [
"dist",
"package.json"
],
"devDependencies": {
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
Expand Down Expand Up @@ -51,6 +60,7 @@
"scripts": {
"test": "jest",
"prettier": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",
"eslint": "eslint --no-eslintrc --c .eslintrc.json --fix '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'"
"eslint": "eslint --no-eslintrc --c .eslintrc.json --fix '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'",
"build": "tsup"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { useSyncRHFWithStore } from "./hook";
export { useSyncRHFWithStore };
import { useFormWithStore, useSyncRHFWithStore } from "./hook";
export { useSyncRHFWithStore, useFormWithStore };
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
"jsx": "react-jsx",

"target": "esnext",
"types": [
"jest",
"@testing-library/jest-dom"
],
"moduleResolution": "node",
"types": ["jest", "@testing-library/jest-dom"],
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,

"strict": true /* Enable all strict type-checking options. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"noUncheckedIndexedAccess": true,
"noEmit": true,
"baseUrl": "./src",
"baseUrl": "./src"
},
"include": ["src"],
"exclude": ["node_modules", "dist"]

}

0 comments on commit 1786e79

Please sign in to comment.