Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm install doesn't include dist #335

Closed
robertdempsey opened this issue Sep 28, 2016 · 7 comments
Closed

Npm install doesn't include dist #335

robertdempsey opened this issue Sep 28, 2016 · 7 comments

Comments

@robertdempsey
Copy link

Hi,

Great library, using it at work for all of our websocket stuff. I'm in a bit of a bind though, I would like to get rid of the need for bower (even if I have to use it, it doesn't seem to be playing nicely with webpack) but when I install this through npm, the dist directory doesn't come along (I see it's included in .npmignore).

Is this required for the library to work? If I download it manually and put it in my node_modules, everything is hunky dory. Should the dist directory be removed from .npmignore?

Cheers
Rob

@kisdaniel
Copy link

Will it be solved?

@andrewfinnell
Copy link

andrewfinnell commented Oct 19, 2016

I am floored by the exclusion of the dist directory as well.. I just tried to use the npm version of this library only to discover that the AMD compatible files don't get included.. Such a shame. We can fork this repo then install it via the github+npm interface at least.

This is a major issue when using an AMD loader and sockjs via npm. The UMD wrapper code is not in the /lib directory, only in the /dist directory.

@andrewfinnell
Copy link

For anyone needing an immediate fix change your package.json to use this instead:

"sockjs-client": "github:parlew/sockjs-client"

It now includes the dist directory.

@brycekahle
Copy link
Contributor

Duplicate of #265

@dbashford
Copy link

Excluding dist is a remarkably poor decision.

@dbashford
Copy link

dbashford commented Nov 14, 2016

@afinnell Any chance you could publish that to NPM as '@parlew/sockjs-client'?

For example:

https://github.com/Mind-Trace/stomp-websocket/blob/master/package.json#L2.

https://www.npmjs.com/package/@mind-trace/stompjs

We aren't able to use GH dependencies via NPM from our build environment.

@dbashford
Copy link

@afinnell nevermind, didn't realize that is how private packages work.

I published sockjs-client-web to NPM. In a bit of a crunch. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants