tleunen / react-number-editor

Custom number editor (text field) react component
MIT License
70 stars 15 forks source link

Index.js wrong file #20

Closed cookednoodles closed 8 years ago

cookednoodles commented 8 years ago

Index.js appears to be pointing to : ./lib/NumberEditor

However the file is in ./src/

tleunen commented 8 years ago

It's not an error, it's done on purpose. It's because the file gets compiled when the package is published on NPM. So the lib/index.js exists at that time.

cookednoodles commented 8 years ago

The v4 build doesn't seem to be doing this, there isn't a lib folder in the build.

tleunen commented 8 years ago

You're right. a .npmignore is required to prevent npm to use .gitignore which is ignoring /lib. Reopening this issue.

Until it's resolved, you should be able to run npm run compile inside the folder to create lib/index.js

tleunen commented 8 years ago

Should be fixed now with the version 4.0.1 :) Thanks again @cookednoodles!