From 19cfb4eb12587bb5b24a26612dc98eced3d4dee9 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 11 Feb 2016 11:35:23 -0800 Subject: [PATCH] fix(build): publish typings directory to our npm snapshot branch --- .gitignore | 1 + scripts/publish/publish-build-artifacts.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f6961d0181..8060eef4d4 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ tmp *.js.map # Or type definitions we mirror from github +# (NB: these lines are removed in publish-build-artifacts.sh) **/typings/**/*.d.ts **/typings/tsd.cached.json diff --git a/scripts/publish/publish-build-artifacts.sh b/scripts/publish/publish-build-artifacts.sh index 5c68325811..e1b782c6b0 100755 --- a/scripts/publish/publish-build-artifacts.sh +++ b/scripts/publish/publish-build-artifacts.sh @@ -41,7 +41,7 @@ function publishRepo { # copy over build artifacts into the repo directory rm -rf $REPO_DIR/* cp -R $ARTIFACTS_DIR/* $REPO_DIR/ - cp .gitignore $REPO_DIR/ + grep -v /typings/ .gitignore > $REPO_DIR/.gitignore echo `date` > $REPO_DIR/BUILD_INFO echo $SHA >> $REPO_DIR/BUILD_INFO