From 831c69956185e680020fd5b6e9f24902c4550753 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Sun, 5 Oct 2025 12:00:52 -0600 Subject: [PATCH] Explain closure_ts_compile.deps --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9646332..f5d7464 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ closure_ts_compile( - download npm deps and prepare the `js_binary` tsickle runner (`//tools/tsicklecompiler`). - run the tool, which roughly works as follows: - - prepare in internal/minimal `tsconfig.json` configuration. + - prepare an internal/minimal `tsconfig.json` configuration. - runs `tsc` over the inputs to generate a `ts.Program` - runs tsickle over the `ts.Program` to AST-rewrite/transform it. - emits the transformed `.js` files. @@ -52,3 +52,7 @@ closure_ts_compile( - each `{basename}.ts` will produce an equivalent `{basename}.js` file - if any `.d.ts` files are present, a single `{name}-externs.js` file will be produced. + +`closure_ts_compile` can take `deps` on other `closure_ts_compile` rules. The +source `.ts` files will be made available to `tsc`. Only direct `.ts` files in +the primary rule will emitted. \ No newline at end of file