mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
This Cl is the output of the following command: npm run install-deps -- dedupe This is an attempt to reduce the amount of disk usage of the node_modules folder. For more information, see https://github.com/eslint/eslint/issues/14098 DISABLE_THIRD_PARTY_CHECK=NPM dedupe R=jacktfranklin@chromium.org Bug: none Change-Id: If482ec6cf6ad1936aab4a7b0ff3e61bf5ea98a8f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2703961 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
16 lines
328 B
JavaScript
Executable File
16 lines
328 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
/* eslint no-var: 0 */
|
|
|
|
var parser = require("..");
|
|
var fs = require("fs");
|
|
|
|
var filename = process.argv[2];
|
|
if (!filename) {
|
|
console.error("no filename specified");
|
|
} else {
|
|
var file = fs.readFileSync(filename, "utf8");
|
|
var ast = parser.parse(file);
|
|
|
|
console.log(JSON.stringify(ast, null, " "));
|
|
}
|