-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
package json gets ignored when installing package via a custom endpoint #143
Comments
Yes this is a but that still needs fixing. In the mean time, if you can provide a I will look into it as soon as I'm next on the project. |
I just tried this out and even installed the git endpoint as well and it all seemed to be working fine for me! If you can let me know what package.json info is being ignored I can try and run another test on this. Note that there was one bug that I had to fix due to the endpoint not having a config hook (a145dc4). Also, it may be useful to provide this as I had to manually do |
Mh interesting. Maybe something was wrong with my package json. I'll verify it again and let you know about the result. Oh right, the config hook is still missing. I'll add it as soon as I've time :) |
Yeah it would be interesting to hear what this was. The config hook is entirely optional, no need to add it. |
I've added now the config hook in my latest pull-request for jspm-git :) But I still have to find the old configuration I've used back then when I created the ticket. |
I've tested it now again with some old package.json and my configuration gets still ignored: // package.json
{
"name": "my-pkg",
"author": "",
"description": "",
"version": "0.1.0",
"jspm": {
"name": "my-pkg",
"registry": "jspm",
"directories": {
"dist": "src/"
},
"dependencies": {
"sub-pkg": "myend:sub-pkg@^0.1.0"
}
} I'm using the latest jspm-git version to install it from our local git source server. The strange thing is that if I install the pre-build package from our git build server then everything works fine and it fetches also the dependencies... // package.json on build server
{
"registry": "jspm",
"name": "my-pkg",
"version": "0.1.0",
"main": "",
"dependencies": {
"sub-pkg": "myend:sub-pkg@^0.1.0"
}
} |
Could this perhaps be that the Basically, the calculated package.json is taken to be the package.json with the |
yes that could be the reason. I didn't know that the endpoint has to search for the |
Ok great, no the endpoint doesn't have to do t, this is a bug. Just wanted On Monday, October 13, 2014, subesokun [email protected] wrote:
|
There have been a lot of changes to the endpoint API but it is finally stable now. Thanks for bearing with here. The API methods are pretty well documented at https://github.com/jspm/jspm-cli/blob/master/lib/endpoint.js#L35 now. The download hook should now have its package.json treated correctly as well. Let me know how it goes, and if you need any help at all. |
Thanks for the update. I'll test it and let you know about the result. The Endpoint API documentation looks great :) |
Sorry it's only comments - will move it out to a wiki soon. |
The package.json gets now correctly interpreted so I can close this issue 👍 |
Great! |
Also I did set up a page for the endpoint API here - https://github.com/jspm/jspm-cli/wiki/Endpoint-API. |
The wiki page looks also good :) I was wondering if it's possible to have a list of 3'rd party endpoints to make it easier for others to find them. I think I've created once a pull-request on jspm.io but not sure if something went wrong while creating it. https://github.com/subesokun/jspm.io/tree/patch-1 |
Oh nice. Yeah I'd be happy to take that! |
I've just updated my jspm-git fork so that it works again with jspm 0.7.x ( https://github.com/subesokun/jspm-git/tree/feat-git-download )
I still have to problem that for some reason the package infos are getting ignored when downloading the packages via this endpoint. Not sure if the endpoint is broken or the package json doesn't get passed through correctly within the jspm-cli
The text was updated successfully, but these errors were encountered: