mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 03:21:16 +08:00
Example invocation of the script: ./refactor-folder-to-es-modules.sh ui It will consequently refactor all files in the ui folder to JavaScript modules. It will also update the BUILD.gn variables to remove the references from the old all_devtools_files into the new modules variables. Change-Id: I35ad6360b15d1aff250afffc8a28774c4e8cc1ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1808867 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@google.com> Cr-Original-Commit-Position: refs/heads/master@{#697602} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 6d48f36bc75c558ac1ee899ccb20877b800e9410
12 lines
200 B
JSON
12 lines
200 B
JSON
{
|
|
"devDependencies": {
|
|
"@types/node": "^12.7.1",
|
|
"recast": "^0.18.2",
|
|
"typescript": "^3.6.3"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"migrate": "node refactor-to-es-module.js"
|
|
}
|
|
}
|