transform-esm.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. npx jscodeshift \
  2. -t node_modules/5to6-codemod/transforms/amd.js \
  3. --parser babylon \
  4. --ignore-pattern=frontend/js/vendor \
  5. frontend/js
  6. npx jscodeshift \
  7. -t node_modules/5to6-codemod/transforms/amd.js \
  8. --parser babylon \
  9. --ignore-pattern=test/frontend/import_tests.js \
  10. test/frontend
  11. for MODULE in admin-panel cms dropbox git-bridge github-sync launchpad metrics open-in-overleaf overleaf-integration portals references-search support templates tpr-webmodule two-factor-authentication v2-templates
  12. do
  13. npx jscodeshift \
  14. -t node_modules/5to6-codemod/transforms/amd.js \
  15. --parser babylon \
  16. modules/$MODULE/frontend/js
  17. done
  18. npx jscodeshift \
  19. -t node_modules/5to6-codemod/transforms/amd.js \
  20. --parser babylon \
  21. modules/rich-text/frontend/js
  22. npx jscodeshift \
  23. -t node_modules/5to6-codemod/transforms/amd.js \
  24. --parser babylon \
  25. modules/rich-text/test/frontend
  26. npx jscodeshift \
  27. -t node_modules/5to6-codemod/transforms/amd.js \
  28. --parser babylon \
  29. modules/publish-modal/frontend/js
  30. npx jscodeshift \
  31. -t node_modules/5to6-codemod/transforms/amd.js \
  32. --parser babylon \
  33. modules/publish-modal/test/frontend
  34. make format_fix