mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
8c6f5deab2
A new element kind, sticker, draws layered vector illustrations from a library in twelve themes, behind its own entry point @trek/shared/stickers. Studio gets a Stickers rail section (themes, localized search, recently used, click or drag to place) and an inspector for colour slots, mirroring, turning and opacity. The assistant gets list_book_assets, add and style of stickers in edit_book_page, stickers in describe_book_page and an overlap warning for a sticker over words. BOOK_SCHEMA_REV goes to 2.
23 lines
636 B
TypeScript
23 lines
636 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
// Root barrel + i18n metadata barrel + one entry per locale (lazy-load chunks),
|
|
// plus the DOMPurify sanitisers, kept out of the root (src/sanitize/sanitize.ts), and the
|
|
// sticker library, whose drawings only the Studio and the book engine's callers load
|
|
entry: [
|
|
'src/index.ts',
|
|
'src/roadtrip/planning.ts',
|
|
'src/sanitize/sanitize.ts',
|
|
'src/book/stickers/index.ts',
|
|
'src/i18n/index.ts',
|
|
'src/i18n/*/index.ts',
|
|
],
|
|
format: ['cjs', 'esm'],
|
|
dts: true,
|
|
clean: true,
|
|
deps: {
|
|
neverBundle: ['zod'],
|
|
},
|
|
target: false,
|
|
});
|