Skip to content

🎥 Make videos programmatically with React

further progress

Jonny Burger96fb7246a18d
diff --git a/packages/shapes/package.json b/packages/shapes/package.json
index 4bc93672d4..459be6ed18 100644
--- a/packages/shapes/package.json
+++ b/packages/shapes/package.json
@@ -9,7 +9,7 @@
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
"build": "tsc -d",
- "test": "vitest --run"
+ "test": "bun test src"
},
"author": "Alex Fernandez, Jonny Burger <[email protected]>",
"license": "MIT",
diff --git a/packages/tailwind/.npmignore b/packages/tailwind/.npmignore
index 4e2a8705ae..f8e96c7f1f 100644
--- a/packages/tailwind/.npmignore
+++ b/packages/tailwind/.npmignore
@@ -8,5 +8,3 @@ tsconfig.json
.rollup.cache
dist/tsconfig-esm.tsbuildinfo
tsconfig-esm.json
-rollup.config.js
-rollup-enable.config.js
diff --git a/packages/tailwind/bundle.ts b/packages/tailwind/bundle.ts
new file mode 100644
index 0000000000..321d904e38
--- /dev/null
+++ b/packages/tailwind/bundle.ts
@@ -0,0 +1,15 @@
+import {build} from 'bun';
+
+const output = await build({
+ entrypoints: ['src/enable.ts'],
+ naming: '[name].mjs',
+ target: 'node',
+ external: ['*'],
+});
+
+const [file] = output.outputs;
+const text = await file.text();
+
+await Bun.write('dist/esm/index.mjs', text);
+
+export {};
diff --git a/packages/tailwind/package.json b/packages/tailwind/package.json
index baee82b374..ea335b78b0 100644
--- a/packages/tailwind/package.json
+++ b/packages/tailwind/package.json
@@ -9,7 +9,7 @@
"scripts": {
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
- "build": "rollup --config rollup.config.js && tsc -d"
+ "build": "bun bundle.ts && tsc -d"
},
"author": "Jonny Burger <[email protected]>",
"contributors": [],
@@ -35,14 +35,11 @@
"devDependencies": {
"@jonny/eslint-config": "3.0.281",
"@remotion/bundler": "workspace:*",
- "@rollup/plugin-typescript": "^8.2.0",
"@types/node": "18.14.6",
"autoprefixer": "^10.4.14",
"eslint": "8.56.0",
"prettier": "3.2.5",
- "prettier-plugin-organize-imports": "3.2.4",
- "rollup": "^2.70.1",
- "rollup-plugin-banner2": "^1.2.2"
+ "prettier-plugin-organize-imports": "3.2.4"
},
"keywords": [
"remotion",
diff --git a/packages/tailwind/rollup.config.js b/packages/tailwind/rollup.config.js
deleted file mode 100644
index cc65a541a9..0000000000
--- a/packages/tailwind/rollup.config.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// rollup.config.js
-import typescript from '@rollup/plugin-typescript';
-import banner2 from 'rollup-plugin-banner2';
-
-export default [
- {
- input: 'src/index.ts',
- output: [
- {
- file: 'dist/esm/index.mjs',
- format: 'es',
- sourcemap: false,
- },
- ],
- external: [],
- plugins: [
- typescript({
- tsconfig: 'tsconfig-esm.json',
- sourceMap: false,
- outputToFilesystem: true,
- }),
- banner2(
- () =>
- `import {createRequire} from "module";\nconst require = createRequire(import.meta.url);\n\n`
- ),
- ],
- },
-];
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f6d4c35300..ec47784a8a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2069,9 +2069,6 @@ importers:
'@remotion/bundler':
specifier: workspace:*
version: link:../bundler
- '@rollup/plugin-typescript':
- specifier: ^8.2.0
'@types/node':
specifier: 18.14.6
version: 18.14.6
@@ -2084,12 +2081,6 @@ importers:
prettier-plugin-organize-imports:
specifier: 3.2.4
- rollup:
- specifier: ^2.70.1
- version: 2.76.0
- rollup-plugin-banner2:
- specifier: ^1.2.2
- version: 1.2.2
packages/test-utils:
devDependencies: