mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 23:21:25 +02:00
Three independent fixes grouped because they're each one-line changes:
1. Revert MANA_APPS requiredTier test patch
Commit e52b6e29f flipped all 36+ apps to requiredTier='guest' for
local testing. Restored original tiers from before the flip:
guest-accessible (contacts, calendar, todo), public (who),
beta (zitare, calc, guides, arcade), alpha (most modules),
founder (memoro, nutriphi, mail, habits, notes, dreams, cycles,
events, finance, places, news). Body stays at 'guest' (new module,
intentional). The memory note "REVERT BEFORE RELEASE" is now done.
2. Widen toggleField to accept IndexableType keys
`toggleField<T>(table: Table<T, string>, ...)` rejected Dexie
tables keyed by IndexableType (the default). Changed the second
generic to IndexableType so callers like images.svelte.ts don't
need the `as unknown as Parameters<...>[0]` double-cast.
3. Add prepare script to spiral-db
`"prepare": "pnpm build"` ensures `dist/` is rebuilt after
`pnpm install` on a fresh clone. Without this, the 209 cascading
type errors from stale/missing dist files return on every new
checkout. Also added `prepublishOnly` as a safety net.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
64 lines
1.3 KiB
JSON
64 lines
1.3 KiB
JSON
{
|
|
"name": "@mana/spiral-db",
|
|
"version": "0.1.0",
|
|
"description": "Pixel-based spiral database - store structured data in images",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./wallpaper": {
|
|
"types": "./dist/wallpaper.d.ts",
|
|
"import": "./dist/wallpaper.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup src/index.ts src/wallpaper.ts --format esm --dts --clean",
|
|
"dev": "tsup src/index.ts src/wallpaper.ts --format esm --dts --watch",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"type-check": "tsc --noEmit",
|
|
"prepare": "pnpm build",
|
|
"prepublishOnly": "pnpm build"
|
|
},
|
|
"dependencies": {
|
|
"pako": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.19.25",
|
|
"@types/pako": "^2.0.4",
|
|
"tsup": "^8.5.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.1.2"
|
|
},
|
|
"peerDependencies": {
|
|
"sharp": "^0.33.0",
|
|
"@mana/wallpaper-generator": "workspace:*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"sharp": {
|
|
"optional": true
|
|
},
|
|
"@mana/wallpaper-generator": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"keywords": [
|
|
"pixel",
|
|
"database",
|
|
"spiral",
|
|
"image",
|
|
"storage",
|
|
"encoding"
|
|
],
|
|
"license": "MIT"
|
|
}
|