mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user