Axil_Accountants/scripts/generate-importmap.mjs
Vadym Samoilenko 83a8878f4a feat: redesign HeroSection to 3-column MinimalistHero layout
- HeroSection: 3-col layout (copy | concentric circles+dashboard | display headline)
  - 'use client' + framer-motion entrance animations (slide in from sides, scale centre)
  - DashboardPreview inline component (compact portal mockup)
  - Two floating stat mini-cards (Avg Tax Saved, Response Time)
  - Mobile: stacked layout, right headline column hidden, H1 in left column
- ContainerScroll: simplified — removed 72rem scroll container and scroll transforms;
  now plain layout wrapper with CSS fadeInUp entrance
- Header: logo size increased h-10 → h-13 (40px → 52px)
- fix: escape apostrophes in ProcessSection, SolutionSection, TestimonialsSection
- fix: remove unused customSize param from SpotlightCard
- docs: update CONTEXT_HANDOVER.md with session 4 changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 21:20:42 +00:00

23 lines
860 B
JavaScript

/**
* Custom generate:importmap script that works around tsx ESM resolution issues.
* Run via: node --import tsx/esm scripts/generate-importmap.mjs
* (from inside the Docker container where tsx is available in pnpm store)
*/
import { fileURLToPath, pathToFileURL } from 'url'
import path from 'path'
import { generateImportMap } from '@payloadcms/next/utilities'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const root = path.resolve(__dirname, '..')
// Load config from compiled dist or source
const configPath = pathToFileURL(path.join(root, 'src/payload.config.ts')).toString()
console.log('Loading config from:', configPath)
const configModule = await import(configPath)
const config = await (configModule.default ?? configModule)
await generateImportMap(config, { log: true })
console.log('Done!')