Skip to content

Commit

Permalink
Including dist/ when releasing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mzabriskie committed Oct 21, 2016
1 parent a5b31c9 commit 15af13e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tasks/release
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15af13e

Please sign in to comment.