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

Revert "Convert migration scripts to ESM"

GitOrigin-RevId: ca9ddda6ddee8964f72797d3b653ef9cee6a7a49
This commit is contained in:
Liangjun Song
2024-10-01 17:53:36 +08:00
committed by Copybot
parent 492fe24a75
commit b69ff9417a
126 changed files with 557 additions and 1202 deletions

View File

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