aspect-build / rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org
https://docs.aspect.build/rules/aspect_rules_ts
Apache License 2.0
94 stars 53 forks source link

fix: don't limit extends on ts_project to only .json files #610

Closed gregmagolan closed 1 month ago

gregmagolan commented 1 month ago

A user may want to supply an npm package such as //:node_modules/tsconfig to extends attribute

aspect-workflows[bot] commented 1 month ago

Test

74 test targets passed

Targets
//.aspect/bazelrc:update_aspect_bazelrc_presets_0_test [k8-fastbuild]                 252ms
//.aspect/bazelrc:update_aspect_bazelrc_presets_1_test [k8-fastbuild]                 281ms
//.aspect/bazelrc:update_aspect_bazelrc_presets_2_test [k8-fastbuild]                 238ms
//.aspect/bazelrc:update_aspect_bazelrc_presets_3_test [k8-fastbuild]                 231ms
//.aspect/bazelrc:update_aspect_bazelrc_presets_4_test [k8-fastbuild]                 261ms
//.aspect/bazelrc:update_aspect_bazelrc_presets_5_test [k8-fastbuild]                 111ms
//.github/workflows:aspect_workflows_reusable_test [k8-fastbuild]                     273ms
//.github/workflows:update_aspect_bazelrc_presets_0_test [k8-fastbuild]               254ms
//.github/workflows:update_aspect_bazelrc_presets_1_test [k8-fastbuild]               309ms
//docs:update_0_test [k8-fastbuild]                                                   90ms
//docs:update_1_test [k8-fastbuild]                                                   52ms
//docs:update_2_test [k8-fastbuild]                                                   36ms
//examples/assets:test [k8-fastbuild]                                                 38ms
//examples/connect_node/proto:eliza_ts_proto.copy_0_test [k8-fastbuild]               34ms
//examples/connect_node/proto:eliza_ts_proto.copy_1_test [k8-fastbuild]               34ms
//examples/connect_node/proto:eliza_ts_proto.copy_2_test [k8-fastbuild]               64ms
//examples/custom_compiler:test [k8-fastbuild]                                        78ms
//examples/declaration_dir:check_transpile [k8-fastbuild]                             127ms
//examples/declaration_dir:check_types [k8-fastbuild]                                 46ms
//examples/deps_lib_transpiler/b:b_typecheck_test [k8-fastbuild]                      59ms
//examples/deps_lib_transpiler:deps_ts_typecheck_test [k8-fastbuild]                  29ms
//examples/deps_lib_transpiler:importer_linked_ts_typecheck_test [k8-fastbuild]       17ms
//examples/deps_lib_transpiler:importer_rel_ts_typecheck_test [k8-fastbuild]          129ms
//examples/dts_lib:importer_linked_test [k8-fastbuild]                                26ms
//examples/dts_lib:importer_rel_test [k8-fastbuild]                                   72ms
//examples/emit_declaration_only:test [k8-fastbuild]                                  69ms
//examples/global_dts_generated_tsconfig:test [k8-fastbuild]                          24ms
//examples/js_test:test [k8-fastbuild]                                                143ms
//examples/jsx:write_params_test [k8-fastbuild]                                       56ms
//examples/linked_consumer:direct [k8-fastbuild]                                      137ms
//examples/linked_consumer:pkg [k8-fastbuild]                                         143ms
//examples/module_ext:test_cjs_emit [k8-fastbuild]                                    28ms
//examples/module_ext:test_mjs_emit [k8-fastbuild]                                    61ms
//examples/module_ext:write_params_test [k8-fastbuild]                                57ms
//examples/output_group:write_dts_test [k8-fastbuild]                                 60ms
//examples/path_mappings:path_mappings_test [k8-fastbuild]                            25ms
//examples/project_references/lib_b:test [k8-fastbuild]                               110ms
//examples/proto_grpc:logger_ts_proto.copy_0_test [k8-fastbuild]                      51ms
//examples/proto_grpc:logger_ts_proto.copy_1_test [k8-fastbuild]                      29ms
//examples/proto_grpc:main [k8-fastbuild]                                             264ms
//examples/resolve_json_module:test [k8-fastbuild]                                    25ms
//examples/resolve_json_module:ts-with-json [k8-fastbuild]                            86ms
//examples/root_dir:default_test [k8-fastbuild]                                       77ms
//examples/root_dir:replace_test [k8-fastbuild]                                       125ms
//examples/root_dir:strip_test [k8-fastbuild]                                         37ms
//examples/simple:test_dts [k8-fastbuild]                                             30ms
//examples/simple:test_js [k8-fastbuild]                                              171ms
//examples/source_map_support/test:stack_trace_support_test [k8-fastbuild]            249ms
//examples/source_map_support/test:stack_trace_support_with_chdir_test [k8-fastbuild] 403ms
//examples/srcs:test_auto [k8-fastbuild]                                              48ms
//examples/srcs:test_filegroup [k8-fastbuild]                                         59ms
//examples/srcs:test_gen [k8-fastbuild]                                               29ms
//examples/srcs:test_generated [k8-fastbuild]                                         55ms
//examples/srcs_targets:test [k8-fastbuild]                                           26ms
//examples/transpiler:babel_typecheck_test [k8-fastbuild]                             33ms
//examples/tsconfig_types:test [k8-fastbuild]                                         44ms
//examples/typecheck_only:typecheck_only [k8-fastbuild]                               3s
//ts/test/ts_project_worker:fstree_test [k8-fastbuild]                                245ms
//ts/test/ts_project_worker:oom_test [k8-fastbuild]                                   167ms
//ts/test:dir_test [k8-fastbuild]                                                     188ms
//ts/test:out_refs_test [k8-fastbuild]                                                50ms
//ts/test:rootdir_works_with_repeated_directory_typecheck_test [k8-fastbuild]         22ms
//ts/test:skip_lib_check_always_test [k8-fastbuild]                                   160ms
//ts/test:skip_lib_check_honor_tsconfig_test [k8-fastbuild]                           27ms
//ts/test:smoke_test [k8-fastbuild]                                                   153ms
//ts/test:t0_test_0 [k8-fastbuild]                                                    41ms
//ts/test:t1_test_0 [k8-fastbuild]                                                    91ms
//ts/test:t2_test_0 [k8-fastbuild]                                                    24ms
//ts/test:t3_test_0 [k8-fastbuild]                                                    26ms
//ts/test:transpile_typecheck_test [k8-fastbuild]                                     45ms
//ts/test:use_dir_test [k8-fastbuild]                                                 237ms
//ts/test:verbose_false_test [k8-fastbuild]                                           172ms
//ts/test:verbose_true_test [k8-fastbuild]                                            36ms
//ts/test:wrapper_test [k8-fastbuild]                                                 25ms

Buildifier      Format