Files
Synapse/scripts/check-ios-web-fonts.mjs
Dasemu 40631362b3 Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before
starting the server-client architecture migration and domain features
described in docs/agent-guide and the approved implementation plan.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-25 15:32:15 +02:00

32 lines
929 B
JavaScript

import path from 'node:path'
import { findUnsupportedIOSFontAssets } from './lib/check-ios-web-fonts.mjs'
const repoRoot = path.resolve(import.meta.dirname, '..')
const assetRoots = [
path.join(repoRoot, 'static', 'mobile'),
path.join(repoRoot, 'ios', 'App', 'App', 'public'),
]
const result = findUnsupportedIOSFontAssets({ repoRoot, assetRoots })
if (result.roots.length === 0) {
throw new Error('No iOS web assets found. Run pnpm release-mobile or pnpm sync-ios-release first.')
}
if (result.fontFiles.length > 0) {
console.error('iOS web assets must not include .woff or .woff2 font files:')
for (const filePath of result.fontFiles) {
console.error(`- ${filePath}`)
}
process.exit(1)
}
if (result.cssFiles.length > 0) {
console.error('iOS web CSS must not reference .woff or .woff2 font files:')
for (const filePath of result.cssFiles) {
console.error(`- ${filePath}`)
}
process.exit(1)
}