From 01158f278628d33f1623065f5a2f1b8cb40038d2 Mon Sep 17 00:00:00 2001 From: James Ide Date: Tue, 30 Jun 2015 04:24:52 -0700 Subject: [PATCH] [CocoaPods] Run `npm install --production` when installing React.podspec This omits the devDependencies (e.g. test infra), which are intended only for people working on RN. --- React.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React.podspec b/React.podspec index c7bfbbd7c968e1..8c499281790e76 100644 --- a/React.podspec +++ b/React.podspec @@ -22,7 +22,7 @@ Pod::Spec.new do |s| s.default_subspec = 'Core' s.requires_arc = true s.platform = :ios, "7.0" - s.prepare_command = 'npm install' + s.prepare_command = 'npm install --production' s.preserve_paths = "cli.js", "Libraries/**/*.js", "lint", "linter.js", "node_modules", "package.json", "packager", "PATENTS", "react-native-cli" s.header_mappings_dir = "."