invicticide / fractive

Fractive is a free, open-source, Markdown-based hypertext authoring tool for writing interactive fiction.
http://fractive.io
Other
37 stars 5 forks source link

npm install -g should also run build #56

Open NQNStudios opened 6 years ago

NQNStudios commented 6 years ago

What happened

I made changes to the library, and ran npm install -g ./ to update my Fractive installation. However, the Javascript files hadn't changed, so the old library code was still executing. It seems like that command should also run the build process before updating the install.

invicticide commented 6 years ago

I thought this was already happening...? Unless this only occurs when installing from a local source as opposed to when installing from the npm online repository.

NQNStudios commented 6 years ago

I should be more specific. From the command line, when pointed to a Fractive clone, npm install -g ./ seems to install whatever's currently in the lib folder, without first re-building the library such as with npm run build. To fix the problem, I had to run npm run build then run npm install -g ./ again.