zotero/scripts/esmify
Abe Jellinek e2e7676acd Add esmify script
This seems to produce decent output on many of our files, but it totally
misses some import statements. Not sure why that is yet.
2025-06-24 14:46:27 -04:00
..
.gitignore Add esmify script 2025-06-24 14:46:27 -04:00
esmify.py Add esmify script 2025-06-24 14:46:27 -04:00
import-to-import_esmodule.js Add esmify script 2025-06-24 14:46:27 -04:00
is-esmified.js Add esmify script 2025-06-24 14:46:27 -04:00
map.json Add esmify script 2025-06-24 14:46:27 -04:00
package-lock.json Add esmify script 2025-06-24 14:46:27 -04:00
package.json Add esmify script 2025-06-24 14:46:27 -04:00
README.txt Add esmify script 2025-06-24 14:46:27 -04:00
static-import.js Add esmify script 2025-06-24 14:46:27 -04:00
use-import-export-declarations.js Add esmify script 2025-06-24 14:46:27 -04:00
utils.js Add esmify script 2025-06-24 14:46:27 -04:00

This is a modified version of the esmify tool from the fx115 tree:
  https://searchfox.org/mozilla-esr115/source/tools/esmify

Zotero modifications:
  - Make esmify.py work independently of Mach
  - Remove ESLint step
  - Fix VCS integration for our structure (and remove Mercurial)
  - Replace references to nonexistent "pathlib.os"
  - Add handling for Components.utils.import(), not just Cu.import()

Run:
  scripts/esmify/esmify.py [dir]