{"_id":"@byronwade/migrations","name":"@byronwade/migrations","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/migrations","version":"0.1.0","description":"Schema diff, SQL export, migration management for Fakebase","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@byronwade/core":"0.1.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.5.0","vitest":"^2.0.0"},"author":{"name":"Byron Wade"},"homepage":"https://github.com/byronwade/fakebase#readme","bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/migrations"},"engines":{"node":">=20.0.0"},"sideEffects":false,"publishConfig":{"access":"public"},"keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src"},"_id":"@byronwade/migrations@0.1.0","_integrity":"sha512-HryMCLL/RXoRYbvAb7vXgyI7dwkDqpDRVV2klj5EduWIusC2urx3Eg3JtSOYzV9d8EOeyNfRaQn1RG6ARqKLiA==","_resolved":"/private/tmp/claude-501/953220402bde8a74c4755201fb0e466c/byronwade-migrations-0.1.0.tgz","_from":"file:byronwade-migrations-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-HryMCLL/RXoRYbvAb7vXgyI7dwkDqpDRVV2klj5EduWIusC2urx3Eg3JtSOYzV9d8EOeyNfRaQn1RG6ARqKLiA==","shasum":"51564555b5550140b4361332cdfb54863a5a6c94","tarball":"https://registry.npmjs.org/@byronwade/migrations/-/migrations-0.1.0.tgz","fileCount":47,"unpackedSize":149566,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEip5mEe9+3e17w3wBlzkzrtU34x9Ub42FlpyOx2kPOjAiEA93zijfHQwh1UiUbYJbN0B8YI81xaKbJHw1kH9ZbR6C4="}]},"_npmUser":{"name":"byronwade","email":"bcw1995@gmail.com"},"directories":{},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/migrations_0.1.0_1780452908061_0.8189180622927967"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:07.892Z","0.1.0":"2026-06-03T02:15:08.218Z","modified":"2026-06-03T02:15:08.444Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"Schema diff, SQL export, migration management for Fakebase","homepage":"https://github.com/byronwade/fakebase#readme","keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/migrations"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `@byronwade/migrations`\n\n> Part of [**Fakebase**](https://github.com/byronwade/fakebase) — a Supabase-shaped, **local/dev-only** development platform for Next.js prototypes. Not for production use.\n\nSchema tooling for Fakebase: define a schema with the `schema()` DSL, diff two schemas, manage migrations and snapshots, and export Supabase-compatible SQL/seed scripts when you're ready to graduate to real Supabase.\n\n## Installation\n\n```bash\npnpm add -D @byronwade/migrations\n```\n\n## Usage\n\n```ts\nimport { schema, exportSupabaseSql } from \"@byronwade/migrations\";\n\nconst ir = schema({\n  tables: {\n    todos: {\n      columns: {\n        id: { type: \"uuid\", primaryKey: true, default: \"gen_random_uuid()\" },\n        title: { type: \"text\" },\n        done: { type: \"bool\", default: \"false\" },\n      },\n    },\n  },\n});\n\nconst sql = exportSupabaseSql(ir);\n```\n\n## What's inside\n\n- DSL + parsers: `schema`, `parseTypescriptSchema`, `parseSqlSchema`.\n- Diffing: `diffSchemas`, `diffToSql`, `isSchemaDiffEmpty`.\n- Export: `exportSupabaseSql`, `exportSeedSql` (+ `ExportSqlOptions`).\n- Management: `MigrationManager`, `SnapshotManager`.\n\n## Documentation\n\n- [Project README](https://github.com/byronwade/fakebase#readme)\n- [Architecture](https://github.com/byronwade/fakebase/blob/main/docs/architecture.md)\n- [Compatibility matrix](https://github.com/byronwade/fakebase/blob/main/docs/compatibility-matrix.md)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-62bdca86502b14eacd0ae28625b61f88"}