fix: update npm install paths (#379)

This commit is contained in:
Darius Cepulis
2026-02-02 09:53:10 -06:00
committed by GitHub
parent 82511745d8
commit bfaf93fda9
21 changed files with 276 additions and 37 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ function generateReactCode(skin: Skin): string {
const skinComponent = skin === 'frosted' ? 'FrostedSkin' : 'MinimalSkin';
const skinImport = skin === 'frosted' ? 'frosted' : 'minimal';
return `// npm install @videojs/react@next
return `// npm install @videojs/react-preview
import { VideoProvider, ${skinComponent}, Video } from '@videojs/react-preview';
import '@videojs/react-preview/skins/${skinImport}.css';
@@ -34,7 +34,7 @@ export const VideoPlayer = () => {
}
function generateJS(skin: Skin): string {
return `// npm install @videojs/html@next
return `// npm install @videojs/html-preview
import '@videojs/html-preview/skins/${skin}';`;
}