mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
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:
@@ -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