#!/bin/bash
rm -rv demo/node_modules/ng-select/*

npm pack ./dist
tar -xzvf ng-select-*.tgz
mv -v package/* demo/node_modules/ng-select/

rm ng-select-*.tgz
rmdir package

#!/bin/bash
rm -v src/app/ng-select/dist/ng-select-*.tgz
rm -rv demo/node_modules/ng-select/*

npm pack dist
tar -xzvf ng-select-*.tgz
mv -v package/* demo/node_modules/ng-select/

rm ng-select-*.tgz
rm -fRv package

--- 
+++ 
@@ -1,9 +1,10 @@
 #!/bin/bash
+rm -v src/app/ng-select/dist/ng-select-*.tgz
 rm -rv demo/node_modules/ng-select/*
 
-npm pack ./dist
+npm pack dist
 tar -xzvf ng-select-*.tgz
 mv -v package/* demo/node_modules/ng-select/
 
 rm ng-select-*.tgz
-rmdir package
+rm -fRv package
Fix copy current version to demo for testing.
