Skip to main content

Bug Tracker

Side navigation

#14798 closed bug (fixed)

Opened February 14, 2014 12:46PM UTC

Closed February 19, 2014 10:28PM UTC

Last modified March 20, 2014 01:49AM UTC

Define bower.json#main for all tags

Reported by: rhys.evans@ft.com Owned by: timmywil
Priority: high Milestone: 1.11.1/2.1.1
Component: build Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:
Description

I raised a bug with bower https://github.com/bower/bower/issues/1118 asthe bower registry entry for lower case jquery no longer points to /components/jquery, but to jquery/jquery, which I'm told was done in response to a request from jquery.

It's a sensible move, but this breaks the build for a decent number of apps because we use browserify + debowerify, which relies on bower.json#main being properly defined (for jquery it should probably be ['dist/jquery.js', 'dist/jquery.min.js', 'dist/jquery.map']).

I'll bet debowerify isn't the only tool out there that makes use of bower.json#main. Can you please republish your tags with the main property defined and, in the meantime, ask bower to temporarily revert the url routing.

Attachments (0)
Change History (7)

Changed February 15, 2014 04:45PM UTC by kuraga333@mail.ru comment:1

+1. And I don't use browserify + debowerify. Just brunch build:

[Error: Component JSON file "/home/sasha/suitcase/client/bower_components/jquery/.bower.json" must have main property. See https://github.com/paulmillr/read-components#README]

Changed February 18, 2014 04:45PM UTC by timmywil comment:2

#14814 is a duplicate of this ticket.

Changed February 18, 2014 04:45PM UTC by timmywil comment:3

component: unfiledbuild
owner: → timmywil
priority: undecidedhigh
status: newassigned

Changed February 19, 2014 10:28PM UTC by Timmy Willison comment:4

resolution: → fixed
status: assignedclosed

Bower: add main property, move Sizzle to devDependencies, add license property

Fixes #14798

Close gh-1516

Ref gh-1338

Changeset: 027d470b574e15c94cda28f5e2c7a0ed54c11fa6

Changed February 19, 2014 10:44PM UTC by timmywil comment:5

Tags 1.11.0 and 2.1.0 have also been updated. Let us know if you have anymore problems.

Changed February 19, 2014 10:58PM UTC by Timmy Willison comment:6

Bower: stop ignoring yourself, bower

Ref #14798

Ref gh-1516

Ref gh-1338

Changeset: a35996141e3c1de92e89ed77eac1799124e747d3

Changed March 20, 2014 01:49AM UTC by dmethvin comment:7

milestone: None1.11.1/2.1.1