diff --git a/dist/js/npm.js b/dist/js/npm.js new file mode 100644 index 0000000000..17b0feda33 --- /dev/null +++ b/dist/js/npm.js @@ -0,0 +1,12 @@ +require('../../js/transition') +require('../../js/alert') +require('../../js/button') +require('../../js/carousel') +require('../../js/collapse') +require('../../js/dropdown') +require('../../js/modal') +require('../../js/tooltip') +require('../../js/popover') +require('../../js/scrollspy') +require('../../js/tab') +require('../../js/affix') diff --git a/index.js b/index.js deleted file mode 100644 index 5092b4dd8c..0000000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = __dirname; diff --git a/package.json b/package.json index c9376e5f36..6f15315b48 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "style": "dist/css/bootstrap.css", "less": "less/bootstrap.less", - "main": "./index.js", + "main": "./dist/js/npm", "repository": { "type": "git", "url": "https://github.com/twbs/bootstrap.git"