codefresh-io / node-docker-reference

A node.js package to parse a docker image reference
3 stars 2 forks source link

Publish browser friendly version to /lib & source in /src #2

Open chrisdostert opened 6 years ago

chrisdostert commented 6 years ago

Hello, this is an extremely helpful library & thanks for publishing it.

One ask if you'd be open to it; I can't run it through create-react-app without getting this warning .

The suggestion is basically saying npm projects should publish compiled/transpiled browser friendly assets to /lib but keep source in /src.

Would you be open to this?

the following should accomplish it:

add .babelrc

{
  "presets": ["env"]
}

run babel pre-publish to generate /lib

babel src --out-dir=lib

Cheers!