Skip to content
Snippets Groups Projects
  1. Apr 29, 2023
  2. Apr 23, 2023
  3. Apr 12, 2023
  4. Apr 10, 2023
    • Alberto Gasparin's avatar
      Convert commonjs to esm (#877) · cd00da76
      Alberto Gasparin authored
      This PR converts everything (aside from electron) from CommonJS to ESM.
      It is needed to reduce the changes that will happen during the migration
      to Typescript (as TS does not play nice with CJS).
      
      Basically:
      - rewrite `require()` to `import`
      - rewrite `module.exports` to `exports`
      - introduce `ts-node` to run importers so we can convert them to TS too
      
      Lastly, sorry for this larg-ish PR, not my preference but when I tried
      to reduce its scope, I would end up with mixed commons/esm that was even
      more tricky to handle.
      Unverified
      cd00da76
  5. Apr 07, 2023
  6. Apr 03, 2023
    • Alberto Gasparin's avatar
      Convert loot-core to TS p1 (#841) · 79ad04dd
      Alberto Gasparin authored
      Part 1 of the conversion. Mostly renaming js to ts and making sure
      things make still sense. Added also handy TS ESLint rules.
      
      In order to support the various .web/.electron/... I ended up adopting
      `index.d.ts` as pattern to share type definition. Let me know if that
      makes sense for you too. Right now the function type definition is
      duplicated, but the solution will be importing from `index.d.ts` and
      using `const fn: FnDef = () => ...` that way we can keep all variants in
      sync from a single type file.
      
      Such rewrite however is better done in another PR otherwise we risk
      confusing git and loosing history (rename + too many changes). Another
      thing that might do in the next PR is convert all files to ESModules, as
      things get confusing between CJS exports, ESM default/named and TS adds
      extra complains.
      Unverified
      79ad04dd
  7. Mar 27, 2023
  8. Mar 21, 2023
  9. Mar 16, 2023
  10. Mar 05, 2023
  11. Feb 28, 2023
  12. Feb 24, 2023
  13. Feb 10, 2023
  14. Feb 05, 2023
  15. Jan 25, 2023
  16. Jan 18, 2023
  17. Jan 14, 2023
  18. Jan 12, 2023
  19. Jan 03, 2023
  20. Nov 14, 2022
  21. Sep 02, 2022
  22. Aug 23, 2022
  23. Jul 24, 2022
  24. May 27, 2022
  25. Apr 29, 2022
Loading