diff --git a/packages/core/package.json b/packages/core/package.json index f656d494a3..43aeb41617 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -141,6 +141,15 @@ "import": "./dist/index.js", "types": "./dist/index.d.ts" }, + "./package.json": "./package.json", + "./beats": { + "import": "./dist/beats/index.js", + "types": "./dist/beats/index.d.ts" + }, + "./html-attr-safety": { + "import": "./dist/utils/htmlAttrSafety.js", + "types": "./dist/utils/htmlAttrSafety.d.ts" + }, "./lint": { "import": "./dist/lint/index.js", "types": "./dist/lint/index.d.ts" @@ -161,7 +170,15 @@ "import": "./dist/colorLuts.js", "types": "./dist/colorLuts.d.ts" }, + "./storyboard": { + "import": "./dist/storyboard/index.js", + "types": "./dist/storyboard/index.d.ts" + }, "./runtime": "./dist/hyperframe.runtime.iife.js", + "./runtime/clipTree": { + "import": "./dist/runtime/clipTree.js", + "types": "./dist/runtime/clipTree.d.ts" + }, "./runtime/lottie-readiness": { "import": "./dist/lottieReadiness.js", "types": "./dist/lottieReadiness.d.ts" diff --git a/packages/core/src/beats/index.ts b/packages/core/src/beats/index.ts index 006e8d24de..84c90e289d 100644 --- a/packages/core/src/beats/index.ts +++ b/packages/core/src/beats/index.ts @@ -1,2 +1,2 @@ -export * from "./beatDetection"; -export * from "./beatFile"; +export * from "./beatDetection.js"; +export * from "./beatFile.js"; diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index e1ef706c15..e400fc1acc 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -13,7 +13,7 @@ "outDir": "./dist", "rootDir": "./src" }, - "files": ["src/runtime/mediaVolumeEnvelope.ts"], + "files": ["src/runtime/clipTree.ts", "src/runtime/mediaVolumeEnvelope.ts"], "include": ["src/**/*"], "exclude": [ "node_modules", diff --git a/scripts/verify-packed-manifests.mjs b/scripts/verify-packed-manifests.mjs index 792f31e80d..fcaf19cec4 100644 --- a/scripts/verify-packed-manifests.mjs +++ b/scripts/verify-packed-manifests.mjs @@ -29,6 +29,12 @@ function listWorkspaceRefs(pkg) { return refs; } +function listMissingPublishedExports(pkg) { + if (!pkg.exports || !pkg.publishConfig?.exports) return []; + + return Object.keys(pkg.exports).filter((exportKey) => !(exportKey in pkg.publishConfig.exports)); +} + function parsePackJson(output, workspace) { try { const parsed = JSON.parse(output); @@ -44,6 +50,14 @@ function main() { readFileSync(join(ROOT, workspace, "package.json"), "utf8"), ); if (sourcePackageJson.private) continue; + + const missingPublishedExports = listMissingPublishedExports(sourcePackageJson); + if (missingPublishedExports.length > 0) { + throw new Error( + `${workspace} publishConfig.exports is missing source exports: ${missingPublishedExports.join(", ")}`, + ); + } + if (listWorkspaceRefs(sourcePackageJson).length === 0) continue; const packDir = mkdtempSync(join(tmpdir(), "hyperframes-pack-"));