Closed osdiab closed 4 years ago
docs-ts
is failing from this:
docs/examples/src-clone.ts-clone-0.ts (2,23): Cannot find module 'io-ts-types/lib/clone' or its corresponding type declarations. (2307)
will look into it a bit later, time short right now
ah, just had some stray files in my directory, npm test
fully succeeds.
I just emulated what was going on in fp-ts
including copying over its scripts (maybe that should be exported as a library as well, as the same thing could be dumped into io-ts
itself too), would love a pair of eyes that this makes sense @gcanti ! Thanks for the great project.
npm run test
passes fully and the output directory looks correct.
Ready for review @gcanti !
Thanks @osdiab
As of https://github.com/gcanti/fp-ts/pull/1241 we can import directly from
fp-ts
to allow the bundler to decide which bundle to use. This applies the same build structure and output asfp-ts
.ES6 and lib folders are placed in a
dist/
directory, each module has its ownpackage.json
declaringmain
,module
, andtypings
.