Skip to content

Commit 87dc318

Browse files
committed
feat: enhance Sanity schema with new file asset references and distribution log
- Added `sanity.fileAsset.reference` type for file asset references. - Updated `AutomatedVideo` type to include optional fields for audio and video files, short files, and render data. - Introduced a `distributionLog` array to track processing steps and statuses. - Updated `package.json` to use `dotenv-cli` for type generation commands. - Updated dependencies in `pnpm-lock.yaml` to include `dotenv-cli`.
1 parent 97f88c6 commit 87dc318

File tree

12 files changed

+497
-151
lines changed

12 files changed

+497
-151
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lint": "biome check .",
88
"predev": "npm run typegen",
99
"prebuild": "npx sanity schema extract --path=./sanity/extract.json && npx sanity typegen generate || echo 'Sanity typegen skipped (env vars not available)'",
10-
"typegen": "sanity schema extract --path=./sanity/extract.json && sanity typegen generate",
10+
"typegen": "dotenv -e .env.local -- sanity schema extract --path=./sanity/extract.json && dotenv -e .env.local -- sanity typegen generate",
1111
"format": "biome format . --write"
1212
},
1313
"dependencies": {
@@ -126,6 +126,7 @@
126126
"@types/react": "^19.1.12",
127127
"@types/react-dom": "^19.1.9",
128128
"@types/react-syntax-highlighter": "^15.5.13",
129+
"dotenv-cli": "^11.0.0",
129130
"postcss": "^8",
130131
"tailwindcss": "^4.2.1",
131132
"typescript": "^5"

0 commit comments

Comments
 (0)