From 35328015b8890996931265733030ac063c869121 Mon Sep 17 00:00:00 2001 From: Alfonso Presa Date: Wed, 2 Sep 2015 23:05:48 +0200 Subject: [PATCH] chore(build): Avoid publishing dart files to NPM repo closes #3469 Closes #3964 --- scripts/publish/npm_publish.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/publish/npm_publish.sh b/scripts/publish/npm_publish.sh index 6b9d43682e..f67d6774c1 100755 --- a/scripts/publish/npm_publish.sh +++ b/scripts/publish/npm_publish.sh @@ -49,6 +49,9 @@ function publishModule { cp -r $ROOT_DIR/dist/js/cjs/$NAME/$FILES $PUBLISH_DIR fi + # Remove all dart related files + rm -f $PUBLISH_DIR/{,**/}{*.dart,*.dart.md} + npm publish $PUBLISH_DIR }