fedwiki / wiki

Federated Wiki - node server as npm package
https://npmjs.org/package/wiki
Other
333 stars 72 forks source link

command line wiki reports wrong version #10

Closed WardCunningham closed 9 years ago

WardCunningham commented 10 years ago

This site says the current version is 0.1.6.

https://www.npmjs.org/package/wiki

If I install it and run the command line wiki -v it reports version 0.1.3.

I'm guessing that the command line wiki program is reporting the version of the wiki-server package which is 0.1.3, but it is only part of wiki.

https://www.npmjs.org/package/wiki-server

I have rev'd the wiki-client, wiki-server and wiki packages, in that order, trying to make the new printing css available to someone who is just running wiki install -g wiki. I found that npm update wiki wouldn't update unless I rev'd the wiki package.

Am I publishing correctly? Do we have everything set up right to publish updates?

paul90 commented 10 years ago

Shouldn't that be npm update -g wiki, though as you have noticed if the wiki package is not updated it doesn't update the packages it depends on.

Better to just run npm install -g wiki as that, on Windows at least, removes the package and re-installs it.

wiki -v - the code needs to be updated to iterate over the wiki dependencies and report the installed versions.

Meanwhile, npm list -g | grep wiki is a quick way to see which versions are installed.

paul90 commented 10 years ago

It is all coming back, while npm update -g will effectively re-install all the globally install packages, and dependencies (even if they have not been updated), npm update -g wiki will only update if there is a new version of wiki.

To update a globally package's dependencies, if the package itself has not been updated, you simply install it again. Just run npm install -g wiki.

Running wiki -v now gives:

wiki: 0.1.6
wiki-server: 0.1.5
wiki-client: 0.1.4
wiki-plugin-activity: 0.1.1
wiki-plugin-bars: 0.1.1
wiki-plugin-bytebeat: 0.1.1
wiki-plugin-calculator: 0.1.1
wiki-plugin-calendar: 0.1.1
wiki-plugin-changes: 0.1.1
wiki-plugin-chart: 0.1.1
wiki-plugin-code: 0.1.1
wiki-plugin-data: 0.1.1
wiki-plugin-efficiency: 0.1.1
wiki-plugin-factory: 0.1.1
wiki-plugin-favicon: 0.1.1
wiki-plugin-federatedwiki: 0.1.1
wiki-plugin-force: 0.1.1
wiki-plugin-future: 0.1.1
wiki-plugin-image: 0.1.1
wiki-plugin-line: 0.1.1
wiki-plugin-linkmap: 0.1.2
wiki-plugin-logwatch: 0.1.1
wiki-plugin-map: 0.1.1
wiki-plugin-mathjax: 0.1.1
wiki-plugin-metabolism: 0.1.1
wiki-plugin-method: 0.1.4
wiki-plugin-pagefold: 0.1.1
wiki-plugin-paragraph: 0.1.1
wiki-plugin-parse: 0.1.1
wiki-plugin-pushpin: 0.1.1
wiki-plugin-radar: 0.1.1
wiki-plugin-reduce: 0.1.1
wiki-plugin-reference: 0.1.1
wiki-plugin-report: 0.1.1
wiki-plugin-rollup: 0.1.1
wiki-plugin-scatter: 0.1.1
wiki-plugin-twadio: 0.1.2
wiki-plugin-txtzyme: 0.1.3