stop Svelte warnings from failing the build
+ check for them at test time
This commit is contained in:
parent
94330fc0eb
commit
6e4cdc52a6
@ -8,7 +8,6 @@
|
||||
|
||||
import WithGraphData from "./WithGraphData.svelte";
|
||||
|
||||
import * as tr from "anki/i18n";
|
||||
export let nightMode: boolean;
|
||||
export let graphs: SvelteComponent[];
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
import { defaultGraphBounds } from "./graph-helpers";
|
||||
|
||||
export let data: HistogramData | null = null;
|
||||
import * as tr from "anki/i18n";
|
||||
|
||||
let bounds = defaultGraphBounds();
|
||||
let svg = null as HTMLElement | SVGElement | null;
|
||||
|
@ -64,6 +64,8 @@ def svelte_check(name = "svelte_check", srcs = []):
|
||||
args = [
|
||||
"--workspace",
|
||||
native.package_name(),
|
||||
"--fail-on-warnings",
|
||||
"--fail-on-hints",
|
||||
],
|
||||
data = [
|
||||
"//ts:tsconfig.json",
|
||||
|
@ -158,7 +158,6 @@ async function writeJs(
|
||||
// warnings are an error
|
||||
if (result.warnings.length > 0) {
|
||||
console.log(`warnings during compile: ${result.warnings}`);
|
||||
return;
|
||||
}
|
||||
// write out the css file
|
||||
const outputCss = result.css.code ?? "";
|
||||
|
Loading…
Reference in New Issue
Block a user