Add shaka as an optional dependency and fix their type

This commit is contained in:
2025-08-04 23:01:21 +02:00
parent f379209bca
commit 9380428951
4 changed files with 19 additions and 3 deletions
+5
View File
@@ -124,6 +124,9 @@
"react-native-nitro-modules": "^0.29.0",
"typescript": "^5.2.2",
},
"optionalDependencies": {
"shaka-player": "^4.15.9",
},
"peerDependencies": {
"react": "*",
"react-native": "*",
@@ -3286,6 +3289,8 @@
"setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
"shaka-player": ["shaka-player@4.15.9", "", {}, "sha512-x8TElKG1eaj3nlcO9whvH1SbGvJ1gwSdgYlbvcJBNWsMJal70C2ZLk4w8qi8uXpcDjzSR8p28gYgD7WfOdHDGA=="],
"shallow-clone": ["shallow-clone@3.0.1", "", { "dependencies": { "kind-of": "^6.0.2" } }, "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA=="],
"shallowequal": ["shallowequal@1.1.0", "", {}, "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ=="],
+2 -2
View File
@@ -16,7 +16,7 @@
"allowUnusedLabels": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext"],
"lib": ["ESNext", "dom"],
"module": "ESNext",
"moduleResolution": "bundler",
"noEmit": true,
@@ -33,4 +33,4 @@
"target": "ESNext",
"verbatimModuleSyntax": true
}
}
}
+5 -1
View File
@@ -75,6 +75,7 @@
},
"devDependencies": {
"@expo/config-plugins": "^10.0.2",
"@react-native/eslint-config": "^0.77.0",
"@types/react": "^18.2.44",
"del-cli": "^5.1.0",
"eslint": "^8.51.0",
@@ -84,7 +85,7 @@
"prettier": "^3.0.3",
"react": "18.3.1",
"react-native": "^0.77.0",
"@react-native/eslint-config": "^0.77.0",
"shaka-player": "^4.15.9",
"react-native-builder-bob": "^0.40.0",
"react-native-nitro-modules": "^0.29.0",
"typescript": "^5.2.2"
@@ -149,5 +150,8 @@
"type": "view-legacy",
"languages": "kotlin-swift",
"version": "0.41.2"
},
"optionalDependencies": {
"shaka-player": "^4.15.9"
}
}
+7
View File
@@ -0,0 +1,7 @@
declare module 'shaka-player' {
export = shaka;
}
declare module 'shaka-player/dist/shaka-player.compiled' {
export = shaka;
}