From 20fda0026fd389c2f7edb6b1d41dc537cd799d73 Mon Sep 17 00:00:00 2001 From: James Chartrand Date: Tue, 7 Mar 2017 12:17:01 +1100 Subject: [PATCH] fix(fixed path to npm main): fixed path to npm main --- package.json | 2 +- src/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d01b78f..60addf2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cwrc-public-entity-dialogs", "version": "0.0.0-development", "description": "Dialogs for the CWRC-Writer that lookup people, places, organizations, and publications in public authority files.", - "main": "index.js", + "main": "src/index.js", "repository": { "type": "git", "url": "https://github.com/jchartrand/CWRC-PublicEntityDialogs.git" diff --git a/src/index.js b/src/index.js index d2a4b93..5355edd 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,6 @@ -window.jQuery = window.$ = require('jquery'); +if (!window.$) { + window.jQuery = window.$ = require('jquery'); +} require('bootstrap'); let typeahead = require('corejs-typeahead/index.js'); typeahead.loadjQueryPlugin();