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