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

Convert migration scripts to ESM

GitOrigin-RevId: 46f04a1837ebb8244b1156af2d58162d024b6b2d
This commit is contained in:
Liangjun Song
2024-10-01 17:08:26 +08:00
committed by Copybot
parent e000fa7ad2
commit db220b0ed0
126 changed files with 1202 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 => {