mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Fix missing typing of i18n and backend_proto by adding back symlinks
This commit is contained in:
parent
51af6b2544
commit
7170bee37e
5 changed files with 15 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
licenses.json
|
||||
vendor
|
||||
*.svelte.d.ts
|
||||
i18n-generated.ts
|
||||
backend_proto.d.ts
|
||||
|
|
|
@ -6,6 +6,10 @@ load("@rules_python//python:defs.bzl", "py_binary")
|
|||
load("@py_deps//:requirements.bzl", "requirement")
|
||||
load("//ts:jest.bzl", "jest_test")
|
||||
|
||||
_generated = [
|
||||
"i18n-generated.ts",
|
||||
]
|
||||
|
||||
protobufjs_library(
|
||||
name = "backend_proto",
|
||||
proto = "//proto:backend_proto_lib",
|
||||
|
@ -35,9 +39,11 @@ genrule(
|
|||
|
||||
typescript(
|
||||
name = "lib",
|
||||
generated = [
|
||||
":i18n-generated.ts",
|
||||
],
|
||||
srcs = glob(
|
||||
["*.ts"],
|
||||
exclude = _generated,
|
||||
),
|
||||
generated = [":" + file for file in _generated],
|
||||
deps = [
|
||||
":backend_proto",
|
||||
"@npm//@fluent/bundle",
|
||||
|
@ -52,9 +58,9 @@ typescript(
|
|||
# Tests
|
||||
################
|
||||
|
||||
prettier_test()
|
||||
prettier_test(exclude = _generated)
|
||||
|
||||
eslint_test()
|
||||
eslint_test(exclude = _generated)
|
||||
|
||||
jest_test(
|
||||
deps = [
|
||||
|
|
1
ts/lib/backend_proto.d.ts
vendored
Symbolic link
1
ts/lib/backend_proto.d.ts
vendored
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../bazel-bin/ts/lib/backend_proto.d.ts
|
1
ts/lib/i18n-generated.ts
Symbolic link
1
ts/lib/i18n-generated.ts
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../bazel-bin/ts/lib/i18n-generated.ts
|
|
@ -2,6 +2,7 @@
|
|||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
import { anki } from "./backend_proto";
|
||||
|
||||
import Cards = anki.cards;
|
||||
import DeckConfig = anki.deckconfig;
|
||||
import Notetypes = anki.notetypes;
|
||||
|
|
Loading…
Reference in a new issue