mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 05:07:10 -05:00
An esbuild rule that ran fine in a local repo (eg bazel build //:my_esbuild_rule)
fails when built externally (eg bazel build @other_workspace//:my_esbuild_rule).
By prepending the workspace root to the bin path, the resulting base
URL works correctly in both local and remote repo invocations, allowing
esbuild output to be consumed by a different repo.
This change fixes remote repos in Bazel 4.0.0. 3.7.0 seems to require a
workspace_root.replace("external/", "") call first in order
to get the correct location. So while this patch should not break anything
that was not already broken, it only fixes/adds support for remote repos
in 4.0+.
|
||
|---|---|---|
| .. | ||
| congrats | ||
| editor | ||
| esbuild | ||
| graphs | ||
| lib | ||
| sass | ||
| svelte | ||
| sveltelib | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| BUILD.bazel | ||
| copy.bzl | ||
| esbuild.bzl | ||
| eslint.bzl | ||
| format.sh | ||
| licenses.json | ||
| package.json | ||
| prettier.bzl | ||
| protobuf-shim.js | ||
| protobuf.bzl | ||
| README.md | ||
| sql_format.bzl | ||
| sql_format.ts | ||
| tsconfig.json | ||
| update-licenses.sh | ||
| update.sh | ||
| vendor.bzl | ||
| yarn.lock | ||
| yarn.sh | ||
Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.
To update all dependencies:
./update.sh
To add a new dev dependency, use something like:
./add.sh -D @rollup/plugin-alias