From 15af13e51a6e8ef0b60cc6c52e51750006079378 Mon Sep 17 00:00:00 2001 From: Matt Zabriskie Date: Fri, 21 Oct 2016 17:14:21 -0600 Subject: [PATCH] Including dist/ when releasing to npm --- tasks/release | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tasks/release b/tasks/release index 0a18c02..759ab73 100755 --- a/tasks/release +++ b/tasks/release @@ -25,8 +25,21 @@ else exit 1 fi - # Release to npm + # Run build $RACKT_PATH/tasks/build update_version 'build/package.json' $next_version - release -v $next_version -f ./build + + # Create artifact + ARTIFACT=___release_artifact + rm -rf $ARTIFACT + mkdir $ARTIFACT + mkdir $ARTIFACT/dist/ + cp -rf build/ $ARTIFACT + cp -rf dist/ $ARTIFACT/dist/ + + # Release to npm + release -v $next_version -f $ARTIFACT + + # Delete artifact + rm -rf $ARTIFACT fi