Skip to content

🎥 Make videos programmatically with React

also for zod types

Jonny Burgerb10b6c4dab10
diff --git a/packages/layout-utils/package.json b/packages/layout-utils/package.json
index 53bf99c9c2..beee18dc8b 100644
--- a/packages/layout-utils/package.json
+++ b/packages/layout-utils/package.json
@@ -37,12 +37,10 @@
"dependencies": {},
"devDependencies": {
"@jonny/eslint-config": "3.0.281",
- "@rollup/plugin-typescript": "^8.2.0",
"@types/node": "18.14.6",
"eslint": "8.56.0",
"prettier": "3.2.5",
- "prettier-plugin-organize-imports": "3.2.4",
- "rollup": "^2.70.1"
+ "prettier-plugin-organize-imports": "3.2.4"
},
"keywords": [
"remotion",
diff --git a/packages/zod-types/bundle.ts b/packages/zod-types/bundle.ts
new file mode 100644
index 0000000000..e4a3d27761
--- /dev/null
+++ b/packages/zod-types/bundle.ts
@@ -0,0 +1,20 @@
+import {build} from 'bun';
+
+const output = await build({
+ entrypoints: ['src/index.ts'],
+ naming: '[name].mjs',
+ external: [
+ 'react',
+ 'remotion',
+ 'remotion/no-react',
+ 'react/jsx-runtime',
+ 'zod',
+ ],
+});
+
+const [file] = output.outputs;
+const text = await file.text();
+
+await Bun.write('dist/esm/index.mjs', text);
+
+export {};
diff --git a/packages/zod-types/package.json b/packages/zod-types/package.json
index 1617e0b1b3..c3fc957403 100644
--- a/packages/zod-types/package.json
+++ b/packages/zod-types/package.json
@@ -29,11 +29,9 @@
},
"devDependencies": {
"@jonny/eslint-config": "3.0.281",
- "@rollup/plugin-typescript": "^8.2.0",
"eslint": "8.56.0",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "3.2.4",
- "rollup": "^2.70.1",
"zod": "^3.22.3"
},
"keywords": [
diff --git a/packages/zod-types/rollup.config.js b/packages/zod-types/rollup.config.js
deleted file mode 100644
index 7c4dd1cd3a..0000000000
--- a/packages/zod-types/rollup.config.js
+++ /dev/null
@@ -1,23 +0,0 @@
-// rollup.config.js
-import typescript from '@rollup/plugin-typescript';
-
-export default [
- {
- input: 'src/index.ts',
- output: [
- {
- file: 'dist/esm/index.mjs',
- format: 'es',
- sourcemap: false,
- },
- ],
- external: ['remotion', 'zod', 'remotion/no-react'],
- plugins: [
- typescript({
- tsconfig: 'tsconfig-esm.json',
- sourceMap: false,
- outputToFilesystem: true,
- }),
- ],
- },
-];
diff --git a/packages/zod-types/tsconfig-esm.json b/packages/zod-types/tsconfig-esm.json
deleted file mode 100644
index 805e1f04d2..0000000000
--- a/packages/zod-types/tsconfig-esm.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "extends": "../tsconfig-esm.settings.json",
- "compilerOptions": {
- "rootDir": "./src",
- "outDir": "./dist/esm",
- "skipLibCheck": true,
- "jsx": "react-jsx",
- "moduleResolution": "node"
- },
- "references": [{"path": "../core"}],
- "include": ["./src"]
-}
diff --git a/packages/zod-types/tsconfig.json b/packages/zod-types/tsconfig.json
index 3b9787fae3..87380bf178 100644
--- a/packages/zod-types/tsconfig.json
+++ b/packages/zod-types/tsconfig.json
@@ -5,6 +5,7 @@
"outDir": "./dist/cjs",
"skipLibCheck": true
},
+ "include": ["src"],
"references": [
{
"path": "../core"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a251eebdca..783bb9ec8d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1379,9 +1379,6 @@ importers:
'@jonny/eslint-config':
specifier: 3.0.281
- '@rollup/plugin-typescript':
- specifier: ^8.2.0
'@types/node':
specifier: 18.14.6
version: 18.14.6
@@ -1394,9 +1391,6 @@ importers:
prettier-plugin-organize-imports:
specifier: 3.2.4
- rollup:
- specifier: ^2.70.1
- version: 2.76.0
packages/lottie:
dependencies:
@@ -2270,9 +2264,6 @@ importers:
'@jonny/eslint-config':
specifier: 3.0.281
- '@rollup/plugin-typescript':
- specifier: ^8.2.0
eslint:
specifier: 8.56.0
version: 8.56.0
@@ -2282,9 +2273,6 @@ importers:
prettier-plugin-organize-imports:
specifier: 3.2.4
- rollup:
- specifier: ^2.70.1
- version: 2.76.0
zod:
specifier: ^3.22.3
version: 3.22.3