stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.29k stars 594 forks source link

JSPM support #248

Closed davidpronk closed 6 years ago

davidpronk commented 7 years ago

After installing es6-promise through JSPM, main is mapped to dist/es6-promise.js. but dist itself is not present. Only it's contents. This can be solved by adding some JSPM config to the package.json. Setting jspm.directories to "lib": "dist" does the trick. I'll create a PR.

stefanpenner commented 7 years ago

main is mapped to dist/es6-promise.js. but dist itself is not present. Only it's contents.

Can you explain this a bit more? dist/* should be bundled in the distributed package.

davidpronk commented 7 years ago

@stefanpenner JSPM does not install the entire bundle but just the content of dist because of the directories.lib configuration in the package.json

"directories": {
    "lib": "lib"
  },

JSPM documentation on directories.lib

stefanpenner commented 6 years ago

This seems to have gone stale. I would be open to a PR making it easier to use system-js.