jspm / registry

The jspm registry and package.json override service
https://jspm.io
229 stars 255 forks source link

caniuse-api trying to load json files without providing an extension #908

Closed alexisvincent closed 8 years ago

alexisvincent commented 8 years ago

caniuse-api is trying to load json files without providing an extension, not quite sure how to override this?

guybedford commented 8 years ago

This can be done with:

map: {
  './path/to/json': './path/to/json.json'
}

That can go in the package config file (jspm_packages/npm/caniuse-api@1.2.3.json) or the override itself.

alexisvincent commented 8 years ago

Thanks! Once I've written out working overrides can we get this into the registry? Anyone wanting to get postcss working is going to hit this issue

guybedford commented 8 years ago

Sure, although I'm not sure how the overrides will help given the postinstall script reliance?

alexisvincent commented 8 years ago

Damn. I forgot, there's two issues here. The postInstall and an then the json extensions. I forgot about the postInstall