From 9de676acee4381f851a764d6f5c9d0af33ac4bb4 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Mon, 18 Mar 2019 11:13:42 +0200 Subject: [PATCH] Fix: make sure that only the top level node_modules directory is excluded (#3600) * Fix: make sure that only the top level node_modules directory is excluded * Remove old unused packing script --- .circleci/pack | 2 +- bin/pack | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100755 bin/pack diff --git a/.circleci/pack b/.circleci/pack index 7d5810b6..28dcf911 100755 --- a/.circleci/pack +++ b/.circleci/pack @@ -6,4 +6,4 @@ FILENAME=$NAME.$FULL_VERSION.tar.gz mkdir -p /tmp/artifacts/ -tar -zcv -f /tmp/artifacts/$FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" * +tar -zcv -f /tmp/artifacts/$FILENAME --exclude=".git" --exclude="optipng*" --exclude="cypress" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="^node_modules" * diff --git a/bin/pack b/bin/pack deleted file mode 100755 index 881e2fd4..00000000 --- a/bin/pack +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -NAME=redash -VERSION=$(python ./manage.py version) -FULL_VERSION=$VERSION+b$CIRCLE_BUILD_NUM -FILENAME=$NAME.$FULL_VERSION.tar.gz - -sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '$FULL_VERSION'/" redash/__init__.py -tar -zcv -f $FILENAME --exclude="optipng*" --exclude=".git*" --exclude="*.pyc" --exclude="*.pyo" --exclude="venv" --exclude="node_modules" *