From cdaa8923f181b7203b5f332fa5992c560884c57a Mon Sep 17 00:00:00 2001 From: kitze Date: Sat, 5 Nov 2016 11:17:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20remove=20bundling=20of=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-scripts/package.json | 56 +---------------------------- tasks/cra.sh | 4 --- tasks/release.sh | 3 -- 3 files changed, 1 insertion(+), 62 deletions(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 445aa62aaf5..70600c8bfe5 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -76,64 +76,10 @@ "whatwg-fetch": "1.0.0" }, "devDependencies": { - "bundle-deps": "1.0.0", "react": "^15.3.0", "react-dom": "^15.3.0" }, "optionalDependencies": { "fsevents": "1.0.14" - }, - "bundledDependencies": [ - "autoprefixer", - "babel-core", - "babel-eslint", - "babel-jest", - "babel-loader", - "babel-preset-react-app", - "babel-preset-stage-0", - "babel-plugin-transform-decorators-legacy", - "case-sensitive-paths-webpack-plugin", - "chalk", - "connect-history-api-fallback", - "cross-spawn", - "css-loader", - "detect-port", - "dotenv", - "eslint", - "eslint-config-react-app", - "eslint-loader", - "eslint-plugin-flowtype", - "eslint-plugin-import", - "eslint-plugin-jsx-a11y", - "eslint-plugin-react", - "extract-text-webpack-plugin", - "file-loader", - "filesize", - "fs-extra", - "gzip-size", - "html-webpack-plugin", - "http-proxy-middleware", - "jest", - "json-loader", - "less", - "less-loader", - "node-sass", - "object-assign", - "path-exists", - "postcss-loader", - "promise", - "react-dev-utils", - "recursive-readdir", - "rimraf", - "sass-loader", - "strip-ansi", - "style-loader", - "stylus", - "stylus-loader", - "url-loader", - "webpack", - "webpack-dev-server", - "webpack-manifest-plugin", - "whatwg-fetch" - ] + } } diff --git a/tasks/cra.sh b/tasks/cra.sh index 0271536d706..09796e68cbd 100755 --- a/tasks/cra.sh +++ b/tasks/cra.sh @@ -59,10 +59,6 @@ cd packages/react-scripts # Save package.json because we're going to touch it cp package.json package.json.orig -# Like bundle-deps, this script modifies packages/react-scripts/package.json, -# copying own dependencies (those in the `packages` dir) to bundledDependencies -node $root_path/tasks/bundle-own-deps.js - # Finally, pack react-scripts scripts_path=$root_path/packages/react-scripts/`npm pack` diff --git a/tasks/release.sh b/tasks/release.sh index 14b5cb77b18..dbe03bdfed7 100755 --- a/tasks/release.sh +++ b/tasks/release.sh @@ -53,9 +53,6 @@ npm dedupe # Since it's in optionalDependencies, it will attempt install outside bundle rm -rf node_modules/fsevents -# This modifies package.json to copy all dependencies to bundledDependencies -node ./node_modules/.bin/bundle-deps - cd $root_path # Go! ./node_modules/.bin/lerna publish --independent "$@"