Release notes and changes by @Ennoriel 🚀 🏆
#70
- Fix esm module generation
- add @rollup/plugin-commonjs to generate the real esm version
- add named exports of passwordStrength and defaultOptions
- Minify umd module (umd modules are most used in a browser context, hence are not always minified by a bundlet afterwards):
- add @rollup/plugin-terser to minify the umd version
- fix exported package name (previously a copy/paste from another repo...)
- Clean generated package
- move the source scripts in ./src/ and the test scripts in ./test/
- add .npmignore
- add rollup-plugin-copy to copy the default cjs version in dist
In addition:
- improve umd import section of the readme
- jest test import / require of esm, cjs and umd modules
- update build and readme file
Hotfixes:
#75 Fixed path for types - @capaj
#76 Fixed main path issue - @cmorford