use extra rootDir in tsconfig instead of symlinks

The nice thing about the symlink approach is that it allowed tsc -b
to function without any changes to the tsconfig.json file, but it meant
there were extra links we had to maintain. So instead, we just add an
extra rootDirs entry, and add two commented-out lines that can be
uncommented when wanting to build with tsc directly.
This commit is contained in:
Damien Elmes 2021-10-01 18:28:38 +10:00
parent 7a81a1c7b6
commit 046c6c55d3
112 changed files with 17 additions and 145 deletions

View File

@ -21,7 +21,6 @@ compile_svelte()
typescript(
name = "index",
srcs = glob(["*.ts"]),
deps = [
":svelte",
"//ts/components",

View File

@ -7,10 +7,6 @@ compile_svelte()
typescript(
name = "components",
srcs = glob(
["*.ts"],
exclude = ["*.test.ts"],
),
deps = [
":svelte",
"//ts/lib",

View File

@ -23,10 +23,6 @@ svelte(
typescript(
name = "index",
srcs = [
"index.ts",
"lib.ts",
],
deps = [
"CongratsPage",
"//ts/lib",

View File

@ -1 +0,0 @@
../../bazel-bin/ts/congrats/CongratsPage.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Addons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/AdvancedOptions.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/AudioOptions.svelte.d.ts

View File

@ -22,10 +22,6 @@ compile_svelte()
typescript(
name = "index",
srcs = glob(
["*.ts"],
exclude = ["*.svelte.d.ts"],
),
deps = [
":svelte",
"//ts/components",

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/BuryOptions.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/CardStateCustomizer.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/CheckBox.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/CheckBoxRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Col.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/ConfigSelector.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/DailyLimits.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/DeckOptionsPage.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/DisplayOrder.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/EnumSelector.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/EnumSelectorRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/HtmlAddon.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Label.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/LapseOptions.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/NewOptions.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/RevertButton.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Row.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SaveButton.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SpinBox.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SpinBoxFloat.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SpinBoxFloatRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SpinBoxRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/StepsInput.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/StepsInputRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Switch.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/SwitchRow.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/TextInputModal.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/TimerOptions.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/TitledContainer.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/TooltipLabel.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/deck-options/Warning.svelte.d.ts

View File

@ -21,10 +21,6 @@ compile_svelte()
typescript(
name = "editable",
srcs = glob(
["*.ts"],
exclude = ["*.svelte.d.ts"],
),
deps = [
":svelte",
"//ts/components",

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editable/Mathjax.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/AddTagBadge.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/AddonButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/AutocompleteItem.svelte.d.ts

View File

@ -37,10 +37,6 @@ compile_svelte()
typescript(
name = "editor_ts",
srcs = glob(
["*.ts"],
exclude = ["*.svelte.d.ts"],
),
deps = [
":svelte",
"//ts/components",

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/ClozeButton.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/ColorButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/CommandIconButton.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/Components.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/EditorToolbar.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/FormatBlockButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/FormatInlineButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/HandleBackground.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/HandleControl.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/HandleLabel.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/HandleSelection.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/ImageHandle.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/ImageHandleFloatButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/ImageHandleSizeSelect.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/MathjaxHandle.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/MathjaxHandleEditor.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/MathjaxHandleInlineBlock.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/NoteTypeButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/OnlyEditable.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/PreviewButton.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/SelectedTagBadge.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/Tag.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagDeleteBadge.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagEditMode.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagEditor.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagInput.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagOptionsBadge.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TagWithTooltip.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/TemplateButtons.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/WithAutocomplete.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/WithColorHelper.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/editor/WithImageConstrained.svelte.d.ts

View File

@ -4,7 +4,7 @@ def eslint_test(name = "eslint", srcs = None, exclude = []):
if not srcs:
srcs = native.glob([
"*.ts",
], exclude = ["*.svelte.d.ts"] + exclude)
], exclude = exclude)
_eslint_test(
name = name,
args = [

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/AddedGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/AxisTicks.svelte.d.ts

View File

@ -19,10 +19,6 @@ compile_svelte()
typescript(
name = "index",
srcs = glob(
["*.ts"],
exclude = ["*.svelte.d.ts"],
),
deps = [
":svelte",
"//ts/lib",

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/ButtonsGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/CalendarGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/CardCounts.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/CumulativeOverlay.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/EaseGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/FutureDue.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/Graph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/GraphRangeRadios.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/GraphsPage.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/HistogramGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/HourGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/HoverColumns.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/InputBox.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/IntervalsGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/NoDataOverlay.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/RangeBox.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/ReviewsGraph.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/TableData.svelte.d.ts

View File

@ -1 +0,0 @@
../../bazel-bin/ts/graphs/TodayStats.svelte.d.ts

Some files were not shown because too many files have changed in this diff Show More