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 }