Merge pull request #20732 from overleaf/revert-20731-revert-20480-ls-convert-migration-scripts-to-esm

Revert "Revert "Convert migration scripts to ESM""

GitOrigin-RevId: 0430a3cd02b9d23bf0f4573346351dcf4ee17fa6
This commit is contained in:
Liangjun Song
2024-10-02 17:32:13 +08:00
committed by Copybot
parent 59f124a72d
commit d2b46c9b43
126 changed files with 1203 additions and 557 deletions

View File

@@ -15,8 +15,7 @@ const runScript = async () => {
console.log(`Hello ${name}!`)
}
if (!module.parent) {
// we are in the root module, which means that we're running as a script
if (require.main === module) {
runScript()
.then(() => process.exit())
.catch(err => {