scottcain / seqpanel

stand alone seq panel that highlights subfeatures
MIT License
0 stars 1 forks source link

Creating a target to build a npm-installable react component #7

Closed scottcain closed 1 year ago

scottcain commented 1 year ago

OK, so I don't really know how to get from where I am to having a package to upload to npm. At the moment, on the make_component branch, most script targets work:

However, I added a build:esm target (because I think that's what I want for uploading to npm) that looks like "build:esm": "tsc --target es2018 --outDir esm", but when I run this, nothing happens. Additionally, when I try to run it on the command line, a la ./node_modules/typescript/bin/tsc --target es2018 --outDir esm nothing happens and there is no output.

scottcain commented 1 year ago

yarn tsc ... is what's required, but now I'm not so sure I need the esm part. Looking at https://github.com/GMOD/react-msaview for examples

scottcain commented 1 year ago

This is outdated npm publish works.