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
|
licenses.json
|
||||||
vendor
|
vendor
|
||||||
*.svelte.d.ts
|
i18n-generated.ts
|
||||||
backend_proto.d.ts
|
backend_proto.d.ts
|
||||||
|
|
|
@ -6,6 +6,10 @@ load("@rules_python//python:defs.bzl", "py_binary")
|
||||||
load("@py_deps//:requirements.bzl", "requirement")
|
load("@py_deps//:requirements.bzl", "requirement")
|
||||||
load("//ts:jest.bzl", "jest_test")
|
load("//ts:jest.bzl", "jest_test")
|
||||||
|
|
||||||
|
_generated = [
|
||||||
|
"i18n-generated.ts",
|
||||||
|
]
|
||||||
|
|
||||||
protobufjs_library(
|
protobufjs_library(
|
||||||
name = "backend_proto",
|
name = "backend_proto",
|
||||||
proto = "//proto:backend_proto_lib",
|
proto = "//proto:backend_proto_lib",
|
||||||
|
@ -35,9 +39,11 @@ genrule(
|
||||||
|
|
||||||
typescript(
|
typescript(
|
||||||
name = "lib",
|
name = "lib",
|
||||||
generated = [
|
srcs = glob(
|
||||||
":i18n-generated.ts",
|
["*.ts"],
|
||||||
],
|
exclude = _generated,
|
||||||
|
),
|
||||||
|
generated = [":" + file for file in _generated],
|
||||||
deps = [
|
deps = [
|
||||||
":backend_proto",
|
":backend_proto",
|
||||||
"@npm//@fluent/bundle",
|
"@npm//@fluent/bundle",
|
||||||
|
@ -52,9 +58,9 @@ typescript(
|
||||||
# Tests
|
# Tests
|
||||||
################
|
################
|
||||||
|
|
||||||
prettier_test()
|
prettier_test(exclude = _generated)
|
||||||
|
|
||||||
eslint_test()
|
eslint_test(exclude = _generated)
|
||||||
|
|
||||||
jest_test(
|
jest_test(
|
||||||
deps = [
|
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
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
import { anki } from "./backend_proto";
|
import { anki } from "./backend_proto";
|
||||||
|
|
||||||
import Cards = anki.cards;
|
import Cards = anki.cards;
|
||||||
import DeckConfig = anki.deckconfig;
|
import DeckConfig = anki.deckconfig;
|
||||||
import Notetypes = anki.notetypes;
|
import Notetypes = anki.notetypes;
|
||||||
|
|
Loading…
Reference in a new issue