summaryrefslogtreecommitdiff
path: root/js/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.ts')
-rw-r--r--js/main.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/main.ts b/js/main.ts
index 94ded73e1..538d0cc27 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -85,5 +85,13 @@ export default function denoMain() {
os.exit(1);
}
+ const printDeps = startResMsg.depsFlag();
+ if (printDeps) {
+ for (const dep of compiler.getModuleDependencies(inputFn, `${cwd}/`)) {
+ console.log(dep);
+ }
+ os.exit(0);
+ }
+
compiler.run(inputFn, `${cwd}/`);
}