issues
search
whitphx
/
react-ymd-date-select
Hooks and components for Y-M-D dropdowns with React
https://whitphx.github.io/react-ymd-date-select/
MIT License
45
stars
6
forks
source link
fix build
#3
Closed
whitphx
closed
2 years ago
whitphx
commented
2 years ago
Build a distributable package as a library
Keep the demo page (
index.html
and its dependencies) also active and buildable
Move /src/react-date-select to /lib
Initialize /lib/tsconfig.json
Update /lib/tsconfig.json
Remove @types/node as it is not necessary because test files are excluded from the TS target
Add /lib/tsconfig.cjs.json and npm scripts to build /lib for ESM and CJS respectively
Add /lib/index.ts entrypoint and define main, module, and files fields in package.json
index.html
and its dependencies) also active and buildable