-
-
Notifications
You must be signed in to change notification settings - Fork 256
FlowType (how to exactly configure packages) #85
Comments
I guess it's due to a missing alias in the registry.json file .. so the repo name gets used as an alias per default. A missing package.json file in the github repo shouldn't be a problem, e.g. see https://github.com/angular/bower-material which doesn't have one either .. and the repo entry works just fine. I'd suggest to submit a PR with an appropriate alias name. Speaking of which, what about all lower case |
well the I do like the all lowercase naming , but i just went with what the author named it and removed the .JS but how do i do that ? package-overrides/github/simplefocus/flowtype@1.1.0.json ? would that allow the flowtype package to be installed and required as edit: and then add an entry in the registry file like this ?
|
@Aaike the PR should include a modified registry.json (with the alias <-> endpoint mapping added, e.g. note: the endpoint name as well as the file for the override must match the exact user/org name and repo name. In this case you have to append the yes, put the contents into the override file. Actually you don't need all of the properties you specified in your file. Maybe take a look at https://github.com/jspm/registry/blob/master/package-overrides/github/angular/bower-material%400.6.0.json Be sure to change the name to lowercase in your override as well ... "shim": {
"flowtype": {
"deps": ["jquery"]
}
} ... as it relates to the alias we specified in registry.json. yes, that allows the flowtype package to be installed and required as So all in all the override file content could look something like this: {
"main": "flowtype",
"shim": {
"flowtype": {
"deps": [
"jquery"
]
}
},
"registry": "jspm",
"dependencies": {
"jquery": "jquery@^2.1.2"
}
} I hope this helps. |
The docs are pretty clear :) i was just confused i guess about how to change the alias |
damn.. i just copied your configuration , which had jquery 2.1.2 in it , but now that is failing , because github:components/jquery is at 2.1.1 but jquery itself is at 2.1.2... |
@Aaike it may well be possible to send a PR to that repo to speed things up if you need, otherwise feel free to alter the override back to 2.1.1 in the mean time. |
I would like to submit a PR for FlowType but have a little question first.
The github repo currently does not have a package.json , only a bower.json.
i forked the repo and added a package.json.
This works but when it is installed the package is registered in the configuration as FlowType.JS
and i can import it as require("FlowType.JS")
Is there any way to change the name from FlowType.JS to just FlowType ?
The text was updated successfully, but these errors were encountered: