Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@kentcdodds/pie-night

Pie night sign-ups: hosts start an event, guests add the pies they are bringing and watch the list fill in live. Installable, with optional push notifications.

FollowForkOpen app

Files

migrate.ts

13 lines · 584 B · TypeScript
/**
 * Owner-only, one-time move from the single-event version of Pie Night into a
 * named event. Only useful for installs that ran the old single-event app;
 * forks start empty and skip this.
 *
 *   import migrate from 'kody:@you/pie-night/migrate'
 *   export default () => migrate({ code: 'Our Pie Night 2026', creator: 'your-kody-username', place: 'At our house' })
 */
import { migrateLegacy } from './store.ts'

export default async function migrate(params: { code: string; creator: string; place?: string; title?: string; theme?: string }) {
	return migrateLegacy(params)
}