diff --git a/ts/examples/vite-browser-render/package.json b/ts/examples/vite-browser-render/package.json deleted file mode 100644 index 642b4da4e..000000000 --- a/ts/examples/vite-browser-render/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "example", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "tsc -b && vite build", - "lint": "eslint .", - "typecheck": "tsc --noEmit", - "preview": "vite preview" - }, - "dependencies": { - "@live-compositor/browser-render": "file:../../@live-compositor/browser-render", - "mp4box": "^0.5.2", - "react": "^18.3.1", - "react-dom": "^18.3.1" - }, - "devDependencies": { - "@eslint/js": "^9.9.0", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.1", - "eslint": "^9.9.0", - "eslint-plugin-react-hooks": "^5.1.0-rc.0", - "eslint-plugin-react-refresh": "^0.4.9", - "globals": "^15.9.0", - "typescript": "^5.5.3", - "typescript-eslint": "^8.0.1", - "vite": "^5.4.1", - "vite-plugin-static-copy": "^1.0.6" - } -} diff --git a/ts/lerna.json b/ts/lerna.json index 7b9218b74..0be7f762f 100644 --- a/ts/lerna.json +++ b/ts/lerna.json @@ -4,6 +4,7 @@ "packages": [ "@live-compositor/*", "live-compositor", - "examples/node-examples" + "examples/node-examples", + "examples/vite-browser-render" ] } diff --git a/ts/package-lock.json b/ts/package-lock.json index 917910be3..5549e5b18 100644 --- a/ts/package-lock.json +++ b/ts/package-lock.json @@ -12,7 +12,8 @@ "@live-compositor/core", "@live-compositor/node", "@live-compositor/browser-render", - "examples/node-examples" + "examples/node-examples", + "examples/vite-browser-render" ], "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.16.0", @@ -144,6 +145,31 @@ "ts-node": "^10.9.2" } }, + "examples/vite-browser-render": { + "name": "example", + "version": "0.0.0", + "extraneous": true, + "dependencies": { + "@live-compositor/browser-render": "0.1.0-rc.0", + "mp4box": "^0.5.2", + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@eslint/js": "^9.9.0", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react": "^4.3.1", + "eslint": "^9.9.0", + "eslint-plugin-react-hooks": "^5.1.0-rc.0", + "eslint-plugin-react-refresh": "^0.4.9", + "globals": "^15.9.0", + "typescript": "^5.5.3", + "typescript-eslint": "^8.0.1", + "vite": "^5.4.1", + "vite-plugin-static-copy": "^1.0.6" + } + }, "live-compositor": { "version": "0.1.0-rc.0", "license": "MIT", diff --git a/ts/package.json b/ts/package.json index 2eb426621..22dec5b08 100644 --- a/ts/package.json +++ b/ts/package.json @@ -17,7 +17,8 @@ "@live-compositor/core", "@live-compositor/node", "@live-compositor/browser-render", - "examples/node-examples" + "examples/node-examples", + "examples/vite-browser-render" ], "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.16.0",