🎥 Make videos programmatically with React
fix bundling of @remotion/licensing
JonnyBurgerb16c297e14bb
diff --git a/packages/licensing/bundle.ts b/packages/licensing/bundle.tsindex 5ab0df753b..06dca1b15e 100644--- a/packages/licensing/bundle.ts+++ b/packages/licensing/bundle.ts@@ -1,18 +1,15 @@-import {build} from 'bun';--if (process.env.NODE_ENV !== 'production') {- throw new Error('This script must be run using NODE_ENV=production');-}--const output = await build({- entrypoints: ['src/index.ts'],- naming: '[name].mjs',- external: [],+import {buildPackage} from '../.monorepo/builder';++await buildPackage({+ formats: {+ cjs: 'use-tsc',+ esm: 'build',+ },+ external: 'dependencies',+ entrypoints: [+ {+ path: 'src/index.ts',+ target: 'node',+ },+ ],});--const [file] = output.outputs;-const text = await file.text();--await Bun.write('dist/esm/index.mjs', text);--export {};diff --git a/packages/licensing/package.json b/packages/licensing/package.jsonindex 2b8b9a53ec..b3fd1e01c5 100644--- a/packages/licensing/package.json+++ b/packages/licensing/package.json@@ -27,5 +27,14 @@"@remotion/eslint-config-internal": "workspace:*","eslint": "catalog:"},- "homepage": "https://www.remotion.dev/docs/licensing"+ "homepage": "https://www.remotion.dev/docs/licensing",+ "exports": {+ "./package.json": "./package.json",+ ".": {+ "types": "./dist/index.d.ts",+ "require": "./dist/index.js",+ "module": "./dist/esm/index.mjs",+ "import": "./dist/esm/index.mjs"+ }+ }}