Comments (2)
I used https://github.com/formium/tsdx for that. It automatically builds esm modules and I think a couple of other types via Rollup. If you let it scaffold your repo it also handles the correct package.json info so that users are informed which file to get from dist.
I recognize that the repo has already been scaffolded, but itโs a pretty easy lift to scaffold again and then put the src dir back in. Let me know if you need help. At the current moment I donโt have time to contribute, but that might change later. I wanted to at least share the TSDX tip.
from formts.
Thanks @dgreene1, It makes sense to look at TSDX. I was sceptical of generating entire repo and went for manual setup but maybe it makes more sense to do as you say. Or we can manually apply build config used by tsdx
from formts.
Related Issues (20)
- attaching validation rules to individual fields inside arrays HOT 2
- submitting should set touched of every field to true
- remove built-in validation errors
- builder based API
- improve passing type information about form errors to Schema
- handling of optional fields / lack of field value
- FormHandle.isSubmitting flag issue
- add FieldHandle.reset method
- add FieldHandle.setTouched method
- pass all form values to validate.rules function
- add .isChanged getter to FieldHandle and FormHandle
- access to all errors from all form fields
- Atom created by useFormHandle hook should be cached for reuse
- Support concurrent rendering in React 18
- Enable changing initialValues via form.reset method
- update readme
- objects returned from hooks are not referentially stable
- type of dependency values in validate.rules function is not resolved correctly HOT 1
- validation functions dependant on parent of modified field are not run
- bump typescript version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formts.