Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f93870e

Browse files
committed
Patch video.js types to unbreak the build
Remove the patch when videojs/video.js#9089 is published
1 parent 941469d commit f93870e

File tree

5 files changed

+81
-45
lines changed

5 files changed

+81
-45
lines changed

pnpm-lock.yaml

Lines changed: 51 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-patches/video.js.patch

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/dist/types/menu/menu-button.d.ts b/dist/types/menu/menu-button.d.ts
2+
index 58572dee9b32202c1656269c749efbce623ea363..323101a846fe2064dc74ea9b8faa250fded70744 100644
3+
--- a/dist/types/menu/menu-button.d.ts
4+
+++ b/dist/types/menu/menu-button.d.ts
5+
@@ -67,8 +67,11 @@ declare class MenuButton extends Component {
6+
*
7+
* @param {string} name
8+
* The icon name to be added.
9+
+ *
10+
+ * @return {Element}
11+
+ * The element that gets created.
12+
*/
13+
- setIcon(name: string): void;
14+
+ setIcon(name: string): Element;
15+
/**
16+
* Allow sub components to stack CSS class names for the wrapper element
17+
*
18+
diff --git a/dist/types/menu/menu-button.d.ts.map b/dist/types/menu/menu-button.d.ts.map
19+
index 4768d14c2d8c0a977b93b63eaa9ca5f48d7a2d1a..5bc21645324ccc7c790df13d6f34beedcbf0d7f4 100644
20+
--- a/dist/types/menu/menu-button.d.ts.map
21+
+++ b/dist/types/menu/menu-button.d.ts.map
22+
@@ -1 +1 @@
23+
-{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../../src/js/menu/menu-button.js"],"names":[],"mappings":";AAYA,sCAAsC;AAEtC;;;;GAIG;AACH;IAEE;;;;;;;;OAQG;IACH,oBANW,MAAM,iBAwChB;IA/BC,oBAA8C;IAe9C,kBAAoB;IAIpB,mCAAsD;IAcxD;;OAEG;IACH,eA4BC;IApBC,WAAgB;IAGhB;;;;;OAKG;IACH,uBAA2B;IAa7B;;;;;OAKG;IACH,cAHY,IAAI,CAuCf;IAjCC;;;;;;;OAOG;IACH,iCAAuB;IAevB,YAA+B;IAYjC;;;;OAIG;IACH,oBAAgB;IAEhB;;;;;OAKG;IACH,YAHY,OAAO,CAQlB;IAED;;;;;;OAMG;IACH,cAHW,MAAM,QAKhB;IAED;;;;;OAKG;IACH,wBAHY,MAAM,CAiBjB;IAqBD;;;;;;;;;;;;;OAaG;IACH,mBATW,MAAM,OAGN,OAAO,GAGN,MAAM,CAKjB;IAED;;OAEG;IACH,gBAGC;IAED;;;;;;;;;;OAUG;IACH,mBAPW,KAAK,QAaf;IAED;;;;;;;OAOG;IACH,wBALW,KAAK,QAQf;IAgBD;;;;;;;;OAQG;IACH,qBALW,KAAK,QA0Bf;IAED;;;;;;;;OAQG;IACH,uBALW,KAAK,QAUf;IAED;;;;;;;OAOG;IACH,6BAHW,KAAK,QAKf;IAED;;;;;;;;OAQG;IACH,4BALW,KAAK,QAuBf;IAED;;OAEG;IACH,oBAgBC;IAED;;OAEG;IACH,sBAOC;IAED;;OAEG;IACH,gBAOC;IAED;;OAEG;IACH,eAKC;CACF;sBA1aqB,iBAAiB;mBADpB,cAAc;iBAEhB,WAAW;wBAOJ,WAAW"}
24+
\ No newline at end of file
25+
+{"version":3,"file":"menu-button.d.ts","sourceRoot":"","sources":["../../../src/js/menu/menu-button.js"],"names":[],"mappings":";AAYA,sCAAsC;AAEtC;;;;GAIG;AACH;IAEE;;;;;;;;OAQG;IACH,oBANW,MAAM,iBAwChB;IA/BC,oBAA8C;IAe9C,kBAAoB;IAIpB,mCAAsD;IAcxD;;OAEG;IACH,eA4BC;IApBC,WAAgB;IAGhB;;;;;OAKG;IACH,uBAA2B;IAa7B;;;;;OAKG;IACH,cAHY,IAAI,CAuCf;IAjCC;;;;;;;OAOG;IACH,iCAAuB;IAevB,YAA+B;IAYjC;;;;OAIG;IACH,oBAAgB;IAEhB;;;;;OAKG;IACH,YAHY,OAAO,CAQlB;IAED;;;;;;;;;OASG;IACH,cANW,MAAM,GAGL,OAAO,CAKlB;IAED;;;;;OAKG;IACH,wBAHY,MAAM,CAiBjB;IAqBD;;;;;;;;;;;;;OAaG;IACH,mBATW,MAAM,OAGN,OAAO,GAGN,MAAM,CAKjB;IAED;;OAEG;IACH,gBAGC;IAED;;;;;;;;;;OAUG;IACH,mBAPW,KAAK,QAaf;IAED;;;;;;;OAOG;IACH,wBALW,KAAK,QAQf;IAgBD;;;;;;;;OAQG;IACH,qBALW,KAAK,QA0Bf;IAED;;;;;;;;OAQG;IACH,uBALW,KAAK,QAUf;IAED;;;;;;;OAOG;IACH,6BAHW,KAAK,QAKf;IAED;;;;;;;;OAQG;IACH,4BALW,KAAK,QAuBf;IAED;;OAEG;IACH,oBAgBC;IAED;;OAEG;IACH,sBAOC;IAED;;OAEG;IACH,gBAOC;IAED;;OAEG;IACH,eAKC;CACF;sBA7aqB,iBAAiB;mBADpB,cAAc;iBAEhB,WAAW;wBAOJ,WAAW"}

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ onlyBuiltDependencies:
2020
- node-datachannel
2121
- utf-8-validate
2222
- utp-native
23+
24+
patchedDependencies:
25+
video.js: pnpm-patches/video.js.patch

scripts/nightly.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sed -i 's/"version": "\([^"]\+\)"/"version": "\1-'"$nightly_version"'"/' ./packa
4747
"$directory_name/scripts/upgrade.sh" "$directory_name/support/doc" "$directory_name/support/freebsd" \
4848
"$directory_name/support/init.d" "$directory_name/support/nginx" "$directory_name/support/openapi" \
4949
"$directory_name/support/sysctl.d" "$directory_name/support/systemd" \
50-
"$directory_name/pnpm-lock.yaml" "$directory_name/pnpm-workspace.yaml")
50+
"$directory_name/pnpm-patches" "$directory_name/pnpm-lock.yaml" "$directory_name/pnpm-workspace.yaml")
5151

5252
# temporary setup
5353
cd ..

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ find dist/ packages/core-utils/dist/ \
9494
"$directory_name/scripts/upgrade.sh" "$directory_name/support/doc" "$directory_name/support/freebsd" \
9595
"$directory_name/support/init.d" "$directory_name/support/nginx" "$directory_name/support/openapi" \
9696
"$directory_name/support/sysctl.d" "$directory_name/support/systemd" \
97-
"$directory_name/pnpm-lock.yaml" "$directory_name/pnpm-workspace.yaml")
97+
"$directory_name/pnpm-patches" "$directory_name/pnpm-lock.yaml" "$directory_name/pnpm-workspace.yaml")
9898

9999
# temporary setup
100100
cd ..

0 commit comments

Comments
 (0)