Skip to content

🎥 Make videos programmatically with React

watch build and project refarence

yuta08011b46787cd1d3
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 3f862f3c95..3d98cea2ea 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -8,7 +8,8 @@
},
"scripts": {
"test": "eslint src --ext ts,tsx",
- "build": "tsc -d"
+ "build": "tsc -d",
+ "watch": "tsc -b -w"
},
"files": [
"dist",
diff --git a/packages/bundler/tsconfig.json b/packages/bundler/tsconfig.json
index 7371c22481..3fdc933878 100644
--- a/packages/bundler/tsconfig.json
+++ b/packages/bundler/tsconfig.json
@@ -7,5 +7,8 @@
"jsx": "react-jsx",
"skipLibCheck": true
},
- "include": ["src"]
+ "include": ["src"],
+ "references": [
+ { "path": "../core" }
+ ]
}
diff --git a/packages/cli/package.json b/packages/cli/package.json
index e57da70e1d..b21c8f2678 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -10,6 +10,7 @@
"scripts": {
"test": "eslint src --ext ts,tsx",
"build": "tsc -d",
+ "watch": "tsc -b -w",
"dev": "ts-node src/preview.ts x ../example/src/index.tsx"
},
"files": [
diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json
index 43924f9405..41439c000c 100644
--- a/packages/cli/tsconfig.json
+++ b/packages/cli/tsconfig.json
@@ -5,5 +5,10 @@
"outDir": "dist",
"jsx": "react-jsx",
"skipLibCheck": true
- }
+ },
+ "references": [
+ { "path": "../core" },
+ { "path": "../bundler" },
+ { "path": "../renderer" }
+ ]
}
diff --git a/packages/renderer/package.json b/packages/renderer/package.json
index d3da12be24..78a6665c12 100644
--- a/packages/renderer/package.json
+++ b/packages/renderer/package.json
@@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"test": "eslint src --ext ts,tsx",
+ "watch": "tsc -b -w",
"build": "tsc -d"
},
"files": [
diff --git a/packages/renderer/tsconfig.json b/packages/renderer/tsconfig.json
index 183a684928..9057014c0d 100644
--- a/packages/renderer/tsconfig.json
+++ b/packages/renderer/tsconfig.json
@@ -5,5 +5,9 @@
"rootDir": "src",
"outDir": "dist"
},
- "include": ["src"]
+ "include": ["src"],
+ "references": [
+ { "path": "../core" },
+ { "path": "../bundler" }
+ ]
}