inexorabletash/polyfill

bower.json main attribute is invalid

rianby64 opened this issue · 1 comments

[rianby64@rianlab testpolyfill]$ bower install js-polyfills --save
bower js-polyfills#^0.1.31  not-cached https://github.com/inexorabletash/polyfill.git#^0.1.31
bower js-polyfills#^0.1.31     resolve https://github.com/inexorabletash/polyfill.git#^0.1.31
bower js-polyfills#*        not-cached https://github.com/inexorabletash/polyfill.git#*
bower js-polyfills#*           resolve https://github.com/inexorabletash/polyfill.git#*
bower js-polyfills#*          download https://github.com/inexorabletash/polyfill/archive/v0.1.31.tar.gz
bower js-polyfills#^0.1.31    download https://github.com/inexorabletash/polyfill/archive/v0.1.31.tar.gz
bower js-polyfills#*           extract archive.tar.gz
bower js-polyfills#*      invalid-meta for:/tmp/rianby64/bower/2559b1cc3b12c1b04c2d7aeddfc94ec1-17519-admr0e/bower.json
bower js-polyfills#*      invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .js files: ["es5.js","es6.js","es2016.js","html.js","dom.js","xhr.js","url.js","fetch.js","cssom.js","timing.js","keyboard.js","typedarray.js"]
bower js-polyfills#*          resolved https://github.com/inexorabletash/polyfill.git#0.1.31
bower js-polyfills#^0.1.31     extract archive.tar.gz
bower js-polyfills#^0.1.31     invalid-meta for:/tmp/rianby64/bower/2559b1cc3b12c1b04c2d7aeddfc94ec1-17519-1MG0pm/bower.json
bower js-polyfills#^0.1.31     invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .js files: ["es5.js","es6.js","es2016.js","html.js","dom.js","xhr.js","url.js","fetch.js","cssom.js","timing.js","keyboard.js","typedarray.js"]
bower js-polyfills#^0.1.31         resolved https://github.com/inexorabletash/polyfill.git#0.1.31
bower js-polyfills#^0.1.31          install js-polyfills#0.1.31

What about if...

{
  "main": "polyfill.min.js"
}

?

Do not include minified files.

cf https://github.com/bower/spec/blob/master/json.md#main

So it should be main: "polyfill.js",