mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
![]() 1. All Svelte files in a package are compiled in one step now, which ensures that properties that use types from a different Svelte file in the same package are typed correctly. The single-file svelte() has been removed, and compile_svelte() may be renamed to svelte() in the future. 2. The .ts files in the same package are included as part of the Svelte compilation, so that types imported imported from .ts files in the same package work. 3. Dependencies passed into the rule are now loaded into the TypeScript compiler, so that properties referencing types from different packages work. We'll need to update our compile_svelte() lines to list the dependencies. For example, before this change: % cat bazel-bin/ts/congrats/CongratsPage.svelte.d.ts import { SvelteComponentTyped } from "svelte"; declare const __propDef: { props: { info: any; }; ... After adding //ts/lib to the deps of compile_svelte() in ts/congrats: % cat bazel-bin/ts/congrats/CongratsPage.svelte.d.ts import { SvelteComponentTyped } from "svelte"; import type { Scheduler } from "../lib/proto"; declare const __propDef: { props: { info: Scheduler.CongratsInfoResponse; }; ... |
||
---|---|---|
.. | ||
card-info | ||
change-notetype | ||
components | ||
congrats | ||
deck-options | ||
editable | ||
editor | ||
graphs | ||
html-filter | ||
lib | ||
patches | ||
reviewer | ||
svelte | ||
sveltelib | ||
.eslintrc.js | ||
.gitignore | ||
BUILD.bazel | ||
compile_sass.bzl | ||
copy.bzl | ||
esbuild.bzl | ||
eslint.bzl | ||
format.sh | ||
jest.bzl | ||
jest.config.js | ||
licenses.json | ||
prettier.bzl | ||
proto.bzl | ||
protobuf-no-long.js | ||
protobuf.bzl | ||
README.md | ||
sql_format.bzl | ||
sql_format.ts | ||
tsconfig.json | ||
typescript.bzl | ||
update-licenses.sh | ||
update.sh | ||
vendor.bzl | ||
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