create-user.js 574 B

123456789101112131415161718192021
  1. /**
  2. * WARNING
  3. * This file has been replaced by create-user.mjs. It is left in place for backwards compatibility with previous versions of Overleaf.
  4. * This will be used by the e2e tests that check the upgrade from the older versions, if these tests are updated or removed,
  5. * this file can be removed as well.
  6. */
  7. async function main() {
  8. const { default: createUser } = await import('./create-user.mjs')
  9. await createUser()
  10. }
  11. main()
  12. .then(() => {
  13. console.error('Done.')
  14. process.exit(0)
  15. })
  16. .catch(err => {
  17. console.error(err)
  18. process.exit(1)
  19. })