disable broken svelte_check test on Windows for now

Likely caused by a lack of sandboxing on Windows, causing the generated
.d.ts files to be visible to svelte_check, and being picked up in
preference over the .svelte file.
This commit is contained in:
Damien Elmes 2021-05-08 12:15:49 +10:00
parent 010c3da770
commit 220e14bf0f
2 changed files with 7 additions and 1 deletions

View file

@ -176,4 +176,9 @@ svelte_check(
"//ts/components:svelte_components", "//ts/components:svelte_components",
"@npm//@types/bootstrap", "@npm//@types/bootstrap",
], ],
target_compatible_with = select({
"@platforms//os:osx": [],
"@platforms//os:linux": [],
"//conditions:default": ["@platforms//os:linux"],
}),
) )

View file

@ -78,7 +78,7 @@ def compile_svelte(name, srcs, deps = [], visibility = ["//visibility:private"])
visibility = visibility, visibility = visibility,
) )
def svelte_check(name = "svelte_check", srcs = []): def svelte_check(name = "svelte_check", srcs = [], target_compatible_with = []):
_svelte_check( _svelte_check(
name = name, name = name,
args = [ args = [
@ -95,4 +95,5 @@ def svelte_check(name = "svelte_check", srcs = []):
"@npm//sass", "@npm//sass",
] + srcs, ] + srcs,
env = {"SASS_PATH": "$(rootpath //ts:tsconfig.json)/../.."}, env = {"SASS_PATH": "$(rootpath //ts:tsconfig.json)/../.."},
target_compatible_with = target_compatible_with,
) )