From 8d3bbd74f68cafdf6e69f38beab4f7d4eb009f03 Mon Sep 17 00:00:00 2001 From: Tom Freudenberg Date: Thu, 15 Oct 2015 02:31:24 +0200 Subject: [PATCH] Set PACKAGE_DIRS per default to include non-core packages This resolves issue #10 Read details on non-core packages at http://meteor-universal.tumblr.com/post/111435518849/use-non-core-packages-for-your-meteor-apps --- meteor | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meteor b/meteor index e992bb59776..b6a6a9fd324 100755 --- a/meteor +++ b/meteor @@ -192,6 +192,13 @@ if [ "$METEOR_UNIVERSAL_FLAG" == "ENV" ] ; then fi +# set ENV VAR and include non-core packages per default if $PACKAGE_DIRS +# is not set already +if [ -z "$PACKAGE_DIRS" ] && [ -d "$SCRIPT_DIR/packages/non-core" ] ; then + export PACKAGE_DIRS=$SCRIPT_DIR/packages/non-core +fi + + # We used to set $NODE_PATH here to include the node_modules from the dev # bundle, but now we just get them from the symlink at tools/node_modules. This # is better because node_modules directories found via the ancestor walk from