mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
8f5270899f
Transform frontend module format from AMD to ESM GitOrigin-RevId: 9adbcdc95e819a54114010c6fd3521d8f58ef2fe
41 lines
1.1 KiB
Bash
Executable file
41 lines
1.1 KiB
Bash
Executable file
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
--ignore-pattern=frontend/js/vendor \
|
|
frontend/js
|
|
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
--ignore-pattern=test/frontend/import_tests.js \
|
|
test/frontend
|
|
|
|
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
|
|
do
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
modules/$MODULE/frontend/js
|
|
done
|
|
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
modules/rich-text/frontend/js
|
|
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
modules/rich-text/test/frontend
|
|
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
modules/publish-modal/frontend/js
|
|
|
|
npx jscodeshift \
|
|
-t node_modules/5to6-codemod/transforms/amd.js \
|
|
--parser babylon \
|
|
modules/publish-modal/test/frontend
|
|
|
|
make format_fix
|