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

config paths overwritten after install #1250

Closed
brewster1134 opened this issue Nov 1, 2015 · 3 comments
Closed

config paths overwritten after install #1250

brewster1134 opened this issue Nov 1, 2015 · 3 comments

Comments

@brewster1134
Copy link

i need to customize the values for endpoint paths in my config, which works fine...

  paths: {
    "*.js": "*.js",
    "github:*": "vendored/github/*",
    "npm:*": "vendored/npm/*"
  },

But when I install another jspm package, it rewrite the values back to the defaults...

  paths: {
    "*.js": "*.js",
    "github:*": "jspm_packages/github/*",
    "npm:*": "jspm_packages/npm/*"
  },

is that expected behavior? and if so, is there a way to retain custom paths?

@srolel
Copy link

srolel commented Nov 1, 2015

Try putting this:

"directories": {
    "packages": "vendored"
}

Under jspm in your package.json.

@brewster1134
Copy link
Author

cool! so that works, but i did find a caveat. when i used the same name jspm_packages just with a different path, both package.json, and my config.js were reverted.

this did NOT work...

    "directories": {
      "packages": "vendored/jspm_components"
    },

this DID work...

    "directories": {
      "packages": "vendored/jspm"
    },

potential bug?

@guybedford
Copy link
Member

Yes jspm currently imposes this restriction. jspm 0.17 will be more lenient here.

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

3 participants