isbn3 icon indicating copy to clipboard operation
isbn3 copied to clipboard

code refresh

Open Roman991 opened this issue 11 months ago • 0 comments

Modern frameworks complains a lot about commonjs, so I have refreshed the codebase:

  • [x] migrating the sourcecode to EMS
  • [x] updating tests imports and filenames
  • [x] migrating bundler to esbuild
  • [x] including dist folder to git
  • [x] creating 2 versions of dist version. ESM (browser) and CJS (node)
  • [x] setting package.json to pick the right version of dist file (therefore there should be no regressions or incompatibilities compared to the previous version)
  • [x] updated scripts to build with esbuild

TODOS

  • [x] migrate update_groups.js
  • [x] probably bin scripts need to be migrated too
  • [ ] build new dist at every release
  • [ ] imho this should be a major release, just to avoid any inconvenience
  • [ ] check ISBN in window global, idk if esbuild has on options for this

So basically everything is the same from the outside, plus there is the mjs module and some dependencies has been updated.

Roman991 avatar Feb 29 '24 22:02 Roman991