Files
react-native-devtools-frontend/scripts/migration/package.json
T
Paul Lewis 26afc1e4f9 Adds migration script for refs
This script expects that -legacy.js files are in place for a
given module. So, for example, if migrating front_end/search
one would run move-side-effects-to-legacy for search, then follow
that with this script, replace-internal-references, which will
step through the files in front_end/search and update all globals
to refer to imports.

This script also supports cross-module rewrites, such that if a
namespace is passed through, the -legacy.js file for the namespace
will be loaded instead and used for the replacements.

Bug: 1006759
Change-Id: I7af5e1343a028aed82d5c3f536be886011cf9a2c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1958525
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-12-10 13:47:05 +00:00

15 lines
460 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",
"remove-unused": "npm run build && node remove-unused-global-exports.js",
"move-side-effects-to-legacy": "npm run build && node move-side-effects-to-legacy.js",
"replace-internal-references": "npm run build && node replace-internal-references.js"
}
}