Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

bower.json main attribute is invalid #123

Closed
rianby64 opened this issue Feb 14, 2017 · 1 comment
Closed

bower.json main attribute is invalid #123

rianby64 opened this issue Feb 14, 2017 · 1 comment

Comments

@rianby64
Copy link
Contributor

[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"
}

?

@Mouvedia
Copy link

Mouvedia commented Feb 14, 2017

Do not include minified files.

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

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

rianby64 added a commit to rianby64/polyfill that referenced this issue Feb 14, 2017
rianby64 added a commit to rianby64/polyfill that referenced this issue Feb 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants