This is a tsmodule
library. By
default, it is assumed to be a Node program, but this can be adjusted via the
platform
field in package.json.
Rebuild on changes with tsmodule dev
or the yarn dev
script:
yarn dev
# calls `tsmodule dev`
To export your component library, use tsmodule build
or the yarn build
script:
yarn build
# calls `tsmodule build`
You can then publish to NPM:
yarn publish
All index exports, e.g. src/example/index.tsx
will be available downstream
via import ... from "my-library/example"
.