Skip to content

Commit 80c6f07

Browse files
author
Ahkshaey Ravi
committed
fix: update prism-react-renderer theme imports for new package structure
1 parent f5785bf commit 80c6f07

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v3
1919
with:
2020
node-version: "18"
21-
- uses: actions/cache@v2
21+
- uses: actions/cache@v4
2222
with:
2323
path: |
2424
node_modules

demo/src/utils/prismDark.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import darkTheme from "prism-react-renderer/themes/vsDark/index.cjs.js";
8+
import darkTheme from "prism-react-renderer/themes/vsDark";
99

1010
export default {
1111
plain: {

demo/src/utils/prismLight.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import lightTheme from "prism-react-renderer/themes/github/index.cjs.js";
8+
import lightTheme from "prism-react-renderer/themes/github";
99

1010
export default {
1111
...lightTheme,

0 commit comments

Comments
 (0)