Skip to content

🎥 Make videos programmatically with React

update preset

Jonny Burgere8adf0d4cba9
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index af47eb7c13..a17e9aee40 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -153,7 +153,7 @@ module.exports = {
},
],
[
- "docusaurus-preset-shiki-twoslash",
+ "@jonny/docusaurus-preset-shiki-twoslash",
{
themes: ["github-light", "github-dark"],
defaultCompilerOptions: {
diff --git a/packages/docs/package.json b/packages/docs/package.json
index d36f86c4f7..3ff3c249d4 100644
--- a/packages/docs/package.json
+++ b/packages/docs/package.json
@@ -30,7 +30,7 @@
"clipboard": "^2.0.8",
"clsx": "^1.1.1",
"color-namer": "1.4.0",
- "docusaurus-preset-shiki-twoslash": "1.1.32",
+ "@jonny/docusaurus-preset-shiki-twoslash": "1.1.36",
"hls.js": "^0.14.17",
"jest": "^27.2.4",
"polished": "4.1.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e860dfded8..d6e8f16fa6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -279,6 +279,7 @@ importers:
'@docusaurus/module-type-aliases': 2.0.0-beta.7
'@docusaurus/plugin-content-blog': 2.0.0-beta.7
'@docusaurus/preset-classic': 2.0.0-beta.7
+ '@jonny/docusaurus-preset-shiki-twoslash': 1.1.36
'@mdx-js/react': ^1.6.21
'@remotion/babel-loader': ^2.4.3
'@remotion/bundler': ^2.4.3
@@ -296,7 +297,6 @@ importers:
clipboard: ^2.0.8
clsx: ^1.1.1
color-namer: 1.4.0
- docusaurus-preset-shiki-twoslash: 1.1.32
hls.js: ^0.14.17
jest: ^27.2.4
polished: 4.1.2
@@ -308,6 +308,7 @@ importers:
'@docusaurus/plugin-content-blog': [email protected][email protected]
'@docusaurus/preset-classic': 2.0.0-beta.7_12a6012245369fd5be825566be975ff0
+ '@jonny/docusaurus-preset-shiki-twoslash': 1.1.36
'@mdx-js/react': [email protected]
'@remotion/babel-loader': link:../babel-loader
'@remotion/bundler': link:../bundler
@@ -321,7 +322,6 @@ importers:
clipboard: 2.0.8
clsx: 1.1.1
color-namer: 1.4.0
- docusaurus-preset-shiki-twoslash: 1.1.32
hls.js: 0.14.17
jest: 27.2.4
polished: 4.1.2
@@ -5257,6 +5257,15 @@ packages:
'@types/yargs': 16.0.4
chalk: 4.1.2
+ /@jonny/docusaurus-preset-shiki-twoslash/1.1.36:
+ resolution: {integrity: sha512-8hobv8ZeIvTVOCFkNi6G7YnkC3jDbS0pZrucCK596uzXhvl98JcPJJ8G1Pu8Ok0kC31/fA9aNiDXaXSl9QywTw==}
+ dependencies:
+ remark-shiki-twoslash: 3.0.5
+ typescript: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
/@jonny/eslint-config/[email protected][email protected]:
resolution: {integrity: sha512-PNMb3Wv0PMUfEmUxKL24JqGtbXsJEIn9wDRmnTRr2iio6dTvMROnpP2CSkcHdVU3jvZIHI/QMDibeGdmp/F1Wg==}
dependencies:
@@ -10842,16 +10851,6 @@ packages:
dependencies:
esutils: 2.0.3
- /docusaurus-preset-shiki-twoslash/1.1.32:
- resolution: {integrity: sha512-BACiGWKMhcsrFrl1Gojz0NIgp++RJRKIGrWEI2AeqIzrtYTFRIo8jWNhqtajf6jV2JQIUmyUz/Ozyz/nu5v38w==}
- dependencies:
- copy-text-to-clipboard: 3.0.1
- remark-shiki-twoslash: 3.0.5
- typescript: 4.4.3
- transitivePeerDependencies:
- - supports-color
- dev: false
-
/dom-accessibility-api/0.5.7:
resolution: {integrity: sha512-ml3lJIq9YjUfM9TUnEPvEYWFSwivwIGBPKpewX7tii7fwCazA8yCioGdqQcNsItPpfFvSJ3VIdMQPj60LJhcQA==}
diff --git a/tests/rendering.test.ts b/tests/rendering.test.ts
index 2146840289..8231be2c0e 100644
--- a/tests/rendering.test.ts
+++ b/tests/rendering.test.ts
@@ -299,7 +299,7 @@ test("Dynamic duration should work", async () => {
}
);
- expect(task.exitCode).toBe(0);
+ expect(task.exitCode).toBe(process.platform === "win32");
// FIXME: --props don't work well on windows, this is an edge case for example
// In this case we should warn the user about it that they should pass a file path instead
expect(fs.existsSync(outputPath)).toBe(process.platform !== "win32");