deleteChar function does not exist, use deleteCharacters
also create dist file on npm install
change of cursor event now reports both from and to position
Revert "also create dist file on npm install"

This reverts commit 7495e6fff94f547d8177a12d57b539fde31de68e.