[web] Domi UI: @domi/ui as workspace:* (no Gitea fetch), allowJs instead of the type shim, web.nix sources the vendored package

This commit is contained in:
2026-11-23 00:06:05 +01:00
parent 06438aa386
commit b40e2d3b8e
6 changed files with 28 additions and 37 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"aula:shots": "playwright test --project=aula"
},
"dependencies": {
"@domi/ui": "git+https://gitea.marek-novak.cz/mnovak/domi-design.git#v1.0.1",
"@domi/ui": "workspace:*",
"@ianitor/ui": "workspace:*"
},
"devDependencies": {
-14
View File
@@ -1,14 +0,0 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
// Types only: tsconfig.json "paths" points "@domi/ui" here for svelte-check; Vite, Vitest and the build use the
// package itself. @domi/ui 1.0's index.ts imports Strike.svelte, which has no <script lang="ts">, and a strict
// svelte-check outside the package refuses that import (implicit any). These are the same exports Ianitor uses,
// taken from the components directly. Remove this file and the "paths" entry when @domi/ui fixes Strike.svelte.
export { default as Button } from "../node_modules/@domi/ui/src/components/Button.svelte";
export { default as TextField } from "../node_modules/@domi/ui/src/components/TextField.svelte";
export { default as Checkbox } from "../node_modules/@domi/ui/src/components/Checkbox.svelte";
export { default as Select } from "../node_modules/@domi/ui/src/components/Select.svelte";
export { default as Segmented } from "../node_modules/@domi/ui/src/components/Segmented.svelte";
export { DomiError } from "../node_modules/@domi/ui/src/lib/keys";
+3 -2
View File
@@ -12,9 +12,10 @@
"verbatimModuleSyntax": true,
"isolatedModules": true,
"skipLibCheck": true,
"allowJs": true,
"checkJs": false,
"types": ["vite/client"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"paths": { "@domi/ui": ["./src/domi-ui-types.ts"] }
"lib": ["ES2022", "DOM", "DOM.Iterable"]
},
"include": ["src/**/*.ts", "src/**/*.svelte", "tests/**/*.ts", "../../packages/ui/src/**/*.ts", "../../packages/ui/src/**/*.svelte"]
}