managarten/packages/spiral-db/package.json
Till JS 7d18adadf7 fix: as-any cast cleanup + spiral-db prepare + locale typing
Remaining cast cleanups that got lost during the lint-staged stash
cycle and were re-applied:

- citycorners: added createdBy to LocalLocation type, removed 6
  `as any` casts in getCityStats/getPlatformStats
- picture/images: removed toggleField double-cast (now unnecessary
  after the IndexableType widening in shared-stores)
- contacts/[id]: tagIds exists on Contact — removed the
  `as unknown as Record<...>` cast
- calendar/EventForm: same tagIds fix — read directly from event
- +layout.svelte: import SupportedLocale type, use it for locale
  casts instead of `as any`
- spiral-db: added prepare + prepublishOnly scripts so dist/ is
  built on fresh clones

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:43:01 +02:00

66 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",
"prepublishOnly": "pnpm build",
"prepare": "pnpm build",
"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"
}