fix build

This commit is contained in:
Eugenio Romano
2020-07-18 22:08:09 +01:00
parent c31efa85af
commit 6358f4b318

View File

@@ -7,18 +7,10 @@ cd $DIR/../..
echo "====== Testing ======" echo "====== Testing ======"
echo "====== Build ======" echo "====== Build ======"
npm run ng-packagr -- -p ./lib/testing/
if [ "$CI" = "true" ]; then
echo "Building testing for production"
nx -- build testing --prod || exit 1
else
echo "Building testing for development"
nx build testing || exit 1 nx build testing || exit 1
fi
echo "====== Move to node_modules ======" echo "====== Move to node_modules ======"
rm -rf ./node_modules/@alfresco/adf-testing/ && \ rm -rf ./node_modules/@alfresco/adf-testing/ && \
mkdir -p ./node_modules/@alfresco/adf-testing/ && \ mkdir -p ./node_modules/@alfresco/adf-testing/ && \
cp -R ./lib/dist/testing/* ./node_modules/@alfresco/adf-testing/ cp -R ./lib/dist/testing/* ./node_modules/@alfresco/adf-testing/
nx build testing || exit 1