From f712b795d71279d88a68a19178b4d5324e04ce09 Mon Sep 17 00:00:00 2001 From: David Copeland Date: Sun, 19 Apr 2015 12:22:33 -0400 Subject: [PATCH] Explicitly state the main JS # Problem To bring this lib in using Sprockets, you must do this: ```javascript //= require jasmine/lib/jasmine-core ``` Sprockets can read `bower.json` and, if `main` is explicitly stated in the file, you can do the much more future-proof and compact: ```javascript //= require jasmine ``` # Solution Explicitly specify it. # Caveats I am not super-versed in Bower or JS packaging, so this is proposed in the vein of "this fixes my problem and seems consistent with other JS libs I've looked at", but I'm open to other solutions. --- bower.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bower.json b/bower.json index 5660ef22..c90ea990 100644 --- a/bower.json +++ b/bower.json @@ -14,6 +14,7 @@ ], "license": "MIT", "moduleType": "globals", + "main": "lib/jasmine-core.js", "ignore": [ "**/.*", "dist",