From 3de46286b2340ba7e9cad7d331eef8c555fde94b Mon Sep 17 00:00:00 2001
From: XhmikosR <xhmikosr@gmail.com>
Date: Sat, 25 Nov 2017 02:02:25 +0200
Subject: [PATCH] Update package.json. (#24582)

1. Use the same jQuery version in jspm
2. Update the files to only include the source and dist folders
---
 docs/4.0/migration.md |  1 +
 package.json          | 14 ++++----------
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/docs/4.0/migration.md b/docs/4.0/migration.md
index 97ad847eef..a01b60074c 100644
--- a/docs/4.0/migration.md
+++ b/docs/4.0/migration.md
@@ -12,6 +12,7 @@ While Beta 2 saw the bulk of our breaking changes during the beta phase, but we
 
 - Removed the unused `$thumbnail-transition` variable. We weren't transitioning anything, so it was just extra code.
 - Changed the CSS for managing multiple `background-image`s on custom form checkboxes and radios. Previously, the `.custom-control-indicator` element had the background color, gradient, and SVG icon. Customizing the background gradient meant replacing all of those every time you needed to change just one. Now, we have `.custom-control-indicator` for the fill and gradient and `.custom-control-indicator::before` handles the icon.
+- The npm package no longer includes any files other than our source and dist files; if you relied on them and were running our scripts via the `node_modules` folder, you should adapt your workflow.
 
 ## Beta 2 changes
 
diff --git a/package.json b/package.json
index 8534e320fc..101fed0a27 100644
--- a/package.json
+++ b/package.json
@@ -126,15 +126,9 @@
     "node": ">=6"
   },
   "files": [
-    ".babelrc",
-    ".eslintignore",
-    "Gemfile",
-    "dist",
-    "build",
-    "js/.eslintrc.json",
-    "js/**/*.js",
-    "js/**/*.js.map",
-    "scss/**/*.scss"
+    "dist/",
+    "js/{src,dist}/",
+    "scss/"
   ],
   "browserslist": [
     "Chrome >= 45",
@@ -205,7 +199,7 @@
     },
     "dependencies": {},
     "peerDependencies": {
-      "jquery": "^3.0.0",
+      "jquery": "1.9.1 - 3",
       "popper.js": "^1.12.9"
     }
   }
-- 
GitLab