2
2
"name" : " @interactive-video-labs/react" ,
3
3
"version" : " 0.0.1" ,
4
4
"description" : " Thin React wrapper for the @interactive-video-labs/core engine. Enables cue-based interactive video playback in React apps." ,
5
+ "type" : " module" ,
5
6
"main" : " dist/index.cjs" ,
6
7
"module" : " dist/index.mjs" ,
7
8
"types" : " dist/index.d.ts" ,
16
17
" dist"
17
18
],
18
19
"scripts" : {
19
- "build" : " tsup src/index.ts --format esm,cjs --dts" ,
20
- "dev" : " tsup src/index.ts --watch --format esm,cjs" ,
20
+ "build" : " tsup src/index.tsx --format esm,cjs --dts" ,
21
+ "dev" : " tsup src/index.tsx --watch --format esm,cjs" ,
21
22
"test" : " vitest run" ,
22
23
"clean" : " rm -rf dist" ,
23
- "prepare" : " pnpm build"
24
+ "prepare" : " pnpm build" ,
25
+ "serve-examples" : " pnpm build-examples && http-server examples -c-1" ,
26
+ "build-examples" : " esbuild examples/index.tsx --bundle --outfile=examples/dist/index.js --jsx=automatic"
24
27
},
25
28
"keywords" : [
26
29
" interactive-video" ,
44
47
},
45
48
"packageManager" : " pnpm@10.13.1" ,
46
49
"peerDependencies" : {
50
+ "@interactive-video-labs/core" : " ^0.1.2" ,
47
51
"react" : " >=17.0.0 || >=18.0.0" ,
48
- "react-dom" : " >=17.0.0 || >=18.0.0" ,
49
- "@interactive-video-labs/core" : " ^0.1.2"
52
+ "react-dom" : " >=17.0.0 || >=18.0.0"
50
53
},
51
54
"dependencies" : {
52
55
"jsdom" : " ^26.1.0" ,
53
56
"tsup" : " ^8.5.0" ,
54
57
"typescript" : " ^5.8.3" ,
55
58
"vitest" : " ^3.2.4"
59
+ },
60
+ "devDependencies" : {
61
+ "@testing-library/jest-dom" : " ^6.6.4" ,
62
+ "@testing-library/react" : " ^16.0.0" ,
63
+ "@types/react" : " ^19.1.9" ,
64
+ "http-server" : " ^14.1.1"
56
65
}
57
66
}
0 commit comments