Skip to content

Write HTML. Render video. Built for agents.

fix(ci): unbreak format check on main + skip cli build:fonts when present

Jamesc8a3e5fc4dbd
diff --git a/packages/cli/package.json b/packages/cli/package.json
index d4bc9982cb..dd98961ff2 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -18,7 +18,7 @@
"test": "vitest run",
"dev": "tsx src/cli.ts",
"build": "bun run build:fonts && tsup && bun run build:runtime && bun run build:copy",
- "build:fonts": "cd ../producer && tsx scripts/generate-font-data.ts",
+ "build:fonts": "node -e \"const fs=require('fs');if(!fs.existsSync('../producer/src/services/fontData.generated.ts')){const {execSync}=require('child_process');execSync('cd ../producer && tsx scripts/generate-font-data.ts',{stdio:'inherit'})}else{console.log('[build:fonts] skipped — fontData.generated.ts already exists')}\"",
"build:runtime": "tsx scripts/build-runtime.ts",
"build:copy": "node scripts/build-copy.mjs",
"typecheck": "tsc --noEmit"
diff --git a/packages/core/package.json b/packages/core/package.json
index 5bcc460552..c464973388 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -62,8 +62,7 @@
"./schemas/registry-item.json": "./schemas/registry-item.json"
},
"publishConfig": {
- "main": "./dist/index.js",
- "types": "./dist/index.d.ts",
+ "access": "public",
"exports": {
".": {
"import": "./dist/index.js",
@@ -109,7 +108,8 @@
"./schemas/registry.json": "./schemas/registry.json",
"./schemas/registry-item.json": "./schemas/registry-item.json"
},
- "access": "public"
+ "main": "./dist/index.js",
+ "types": "./dist/index.d.ts"
},
"scripts": {
"build": "bun run build:hyperframes-runtime && tsc",
diff --git a/packages/shader-transitions/package.json b/packages/shader-transitions/package.json
index 3dfbb112b6..c300867e4d 100644
--- a/packages/shader-transitions/package.json
+++ b/packages/shader-transitions/package.json
@@ -22,8 +22,7 @@
}
},
"publishConfig": {
- "main": "./dist/index.js",
- "types": "./dist/index.d.ts",
+ "access": "public",
"exports": {
".": {
"types": "./dist/index.d.ts",
@@ -32,7 +31,8 @@
"require": "./dist/index.cjs"
}
},
- "access": "public"
+ "main": "./dist/index.js",
+ "types": "./dist/index.d.ts"
},
"scripts": {
"build": "tsup",