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