Skip to content

Commit

Permalink
change pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Sep 29, 2024
1 parent 2d89604 commit 19174e3
Show file tree
Hide file tree
Showing 3 changed files with 7,209 additions and 8,913 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nextra-monorepo",
"private": true,
"packageManager": "pnpm@9.11.0",
"packageManager": "pnpm@8.15.9",
"scripts": {
"build": "turbo run build --filter=./packages/\\*",
"build:all": "turbo run build",
Expand Down Expand Up @@ -59,9 +59,9 @@
"patchedDependencies": {
"eslint-plugin-deprecation@3.0.0": "patches/eslint-plugin-deprecation@3.0.0.patch",
"next@14.2.13": "patches/next@13.5.6.patch",
"eslint-plugin-tailwindcss": "patches/eslint-plugin-tailwindcss.patch",
"tsup": "patches/tsup.patch",
"@changesets/assemble-release-plan": "patches/@changesets__assemble-release-plan.patch"
"eslint-plugin-tailwindcss@3.17.3": "patches/eslint-plugin-tailwindcss.patch",
"tsup@8.3.0": "patches/tsup.patch",
"@changesets/assemble-release-plan@6.0.4": "patches/@changesets__assemble-release-plan.patch"
}
}
}
5 changes: 2 additions & 3 deletions packages/nextra/src/server/rehype-plugins/rehype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ export const rehypeParseCodeMeta: Plugin<
ast => {
visit(ast, { tagName: 'pre' }, (node: PreElement) => {
const [codeEl] = node.children as Element[]
// @ts-expect-error fixme
const { meta = '' } = codeEl.data || {}

node.__filename = meta.match(CODE_BLOCK_FILENAME_REGEX)?.[1]
node.__filename = meta!.match(CODE_BLOCK_FILENAME_REGEX)?.[1]
node.properties['data-filename'] = node.__filename

node.__hasWordWrap = !meta.includes('word-wrap=false')
node.__hasWordWrap = !meta!.includes('word-wrap=false')
if (node.__hasWordWrap) {
node.properties['data-word-wrap'] = ''
}
Expand Down
Loading

0 comments on commit 19174e3

Please sign in to comment.