Skip to content

🎥 Make videos programmatically with React

make rollup more strict

Jonny Burger4870fe19c741
diff --git a/packages/core/package.json b/packages/core/package.json
index ddff24649c..792a59006d 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -10,7 +10,7 @@
"prepublishOnly": "node ensure-correct-version.js && cp ../../README.md .",
"lint": "eslint src --ext ts,tsx",
"test": "vitest --run",
- "build": "tsc -d && rollup --config rollup-version.config.js && rollup --config rollup-no-react.config.js && rollup --config rollup.config.js",
+ "build": "tsc -d && rollup --failAfterWarnings --config rollup-version.config.js && rollup --failAfterWarnings --config rollup-no-react.config.js && rollup --failAfterWarnings --config rollup.config.js",
"watch": "tsc -w"
},
"repository": {
diff --git a/packages/example/package.json b/packages/example/package.json
index 3d953a8595..170eda7f2d 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -57,6 +57,7 @@
"@types/react": "18.0.26",
"@types/styled-components": "^5.1.26",
"@types/web": "0.0.78",
+ "@types/three": "0.157.2",
"babel-loader": "^8.2.2",
"dotenv": "9.0.2",
"hls.js": "^0.14.17",
@@ -69,6 +70,7 @@
"react-is": "^18.2.0",
"remotion": "workspace:*",
"styled-components": "^5.3.6",
+ "three": "0.158.0",
"ts-unused-exports": "^7.0.1",
"use-asset": "^1.0.4",
"vitest": "0.31.1",
diff --git a/packages/gif/package.json b/packages/gif/package.json
index 79bb038b23..0d2a36a618 100644
--- a/packages/gif/package.json
+++ b/packages/gif/package.json
@@ -17,7 +17,7 @@
"scripts": {
"formatting": "prettier src --check",
"lint": "eslint src --ext ts,tsx",
- "build": "node build.mjs && rollup --config rollup.config.js && tsc -d",
+ "build": "node build.mjs && rollup --failAfterWarnings --config rollup.config.js && tsc -d",
"watch": "tsc -w"
},
"exports": {
diff --git a/packages/three/package.json b/packages/three/package.json
index d0eba34d2d..e405fe58da 100644
--- a/packages/three/package.json
+++ b/packages/three/package.json
@@ -10,7 +10,7 @@
"formatting": "prettier src --check",
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
- "build": "rollup --config rollup.config.js && tsc -d"
+ "build": "rollup --failAfterWarnings --config rollup.config.js && tsc -d"
},
"author": "Björn Zeutzheim",
"contributors": [],
diff --git a/packages/zod-types/package.json b/packages/zod-types/package.json
index f3671fa219..2138256ba0 100644
--- a/packages/zod-types/package.json
+++ b/packages/zod-types/package.json
@@ -10,7 +10,7 @@
"formatting": "prettier src --check",
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
- "build": "rollup --config rollup.config.js && tsc -d"
+ "build": "rollup --failAfterWarnings --config rollup.config.js && tsc -d"
},
"author": "Jonny Burger",
"contributors": [],