diff --git a/WORKSPACE b/WORKSPACE
index e36a6fb71..436273099 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,5 +1,5 @@
workspace(
- name = "anki",
+ name = "net_ankiweb_anki",
managed_directories = {"@npm": [
"ts/node_modules",
]},
diff --git a/defs.bzl b/defs.bzl
index e8a7d2273..d8e53854a 100644
--- a/defs.bzl
+++ b/defs.bzl
@@ -1,7 +1,7 @@
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
-load("@anki//cargo:crates.bzl", "raze_fetch_remote_crates")
+load("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates")
load(":python.bzl", "setup_local_python")
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
@@ -29,15 +29,9 @@ def setup_deps():
native.register_toolchains("@python//:python3_toolchain")
- # pip_install(
- # name = "py_deps",
- # python_interpreter_target = "@python//:python",
- # requirements = "@anki//pip:requirements.txt",
- # )
-
pip_import(
name = "py_deps",
- requirements = "@anki//pip:requirements.txt",
+ requirements = "@net_ankiweb_anki//pip:requirements.txt",
python_runtime = "@python//:python",
)
@@ -46,13 +40,12 @@ def setup_deps():
python_runtime = "@python//:python",
)
- node_repositories(package_json = ["@anki//ts:package.json"])
+ node_repositories(package_json = ["@net_ankiweb_anki//ts:package.json"])
yarn_install(
name = "npm",
- package_json = "@anki//ts:package.json",
- # strict_visibility = True,
- yarn_lock = "@anki//ts:yarn.lock",
+ package_json = "@net_ankiweb_anki//ts:package.json",
+ yarn_lock = "@net_ankiweb_anki//ts:yarn.lock",
)
sass_repositories()
diff --git a/docs/windows.md b/docs/windows.md
index 7e4c1b1c5..f3ad9a1bc 100644
--- a/docs/windows.md
+++ b/docs/windows.md
@@ -79,9 +79,18 @@ not being installed.
## More
-For info on running tests, building wheels and so on, please see [Development](./development.md).
+For info on running tests, building wheels and so on, please see
+[Development](./development.md).
Note that where the instructions on that page say "bazel", please use ".\bazel"
instead. This runs bazel.bat inside the Anki source folder, instead of
calling Bazel directly. This takes care of setting up the path and output folder
correctly, which avoids issues with long path names.
+
+## Cleaning notes
+
+Unlike the old Make system, a "clean build" should almost never be required
+unless you are debugging issues with the build system. But if you need to run
+"bazel clean --expunge", make sure you remove the ts/node_modules folder
+afterwards, or it will cause a "no such file or directory node_modules/anki"
+error on the subsequent build on Windows.
diff --git a/ts/congrats/CongratsPage.svelte b/ts/congrats/CongratsPage.svelte
index 9e5d55626..829dfeebb 100644
--- a/ts/congrats/CongratsPage.svelte
+++ b/ts/congrats/CongratsPage.svelte
@@ -1,8 +1,8 @@