[go: nahoru, domu]

Skip to content

Commit

Permalink
chore: update dependencies (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed May 14, 2024
1 parent dccd6a2 commit 5c06b40
Show file tree
Hide file tree
Showing 13 changed files with 624 additions and 299 deletions.
6 changes: 3 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{ "repo": "rehype-pretty/rehype-pretty-code" }
],
"commit": false,
"fixed": [["rehype-pretty-code", "@rehype-pretty/transformers"]],
"linked": [],
"fixed": [],
"linked": [["rehype-pretty-code", "@rehype-pretty/transformers"]],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": ["website"],
"ignore": ["website", "example-*"],
"bumpVersionsWithWorkspaceProtocolOnly": true,
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
Expand Down
2 changes: 1 addition & 1 deletion examples/astro/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';
import rehypePrettyCode from 'rehype-pretty-code';
import { rehypePrettyCode } from 'rehype-pretty-code';
import moonlightTheme from './public/theme/moonlight-ii.json';
import { transformerCopyButton } from '@rehype-pretty/transformers';

Expand Down
8 changes: 4 additions & 4 deletions examples/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"clean": "rm -rf dist"
},
"dependencies": {
"@astrojs/mdx": "^2.3.1",
"@astrojs/mdx": "^3.0.0",
"@astrojs/tailwind": "^5.1.0",
"@rehype-pretty/transformers": "workspace:*",
"astro": "^4.7.1",
"astro": "^4.8.3",
"rehype-pretty-code": "workspace:*",
"shiki": "^1.4.0",
"shiki": "^1.5.1",
"tailwindcss": "^3.4.3"
},
"devDependencies": {
"@astrojs/check": "^0.6.0",
"@types/node": "^20.12.10",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
1 change: 1 addition & 0 deletions examples/astro/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />
3 changes: 3 additions & 0 deletions examples/cdn/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "example-cdn",
"version": "0.0.0",
"type": "module",
"private": true,
"scripts": {
"dev": "pnpm dlx serve@latest .",
"start": "pnpm dlx serve@latest ."
Expand Down
2 changes: 1 addition & 1 deletion examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.7",
"@sveltejs/kit": "^2.5.8",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"magic-string": "^0.30.10",
"svelte": "5.0.0-next.123",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"@biomejs/biome": "^1.7.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@types/bun": "^1.1.1",
"@types/node": "^20.12.10",
"bun": "^1.1.7",
"@types/bun": "^1.1.2",
"@types/node": "^20.12.11",
"bun": "^1.1.8",
"simple-git-hooks": "^2.11.1",
"turbo": "^1.13.3",
"typescript": "^5.4.5"
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@shikijs/transformers": "^1.4.0",
"@types/node": "^20.12.10",
"@shikijs/transformers": "^1.5.1",
"@types/node": "^20.12.11",
"hast-util-to-html": "^9.0.1",
"mdast-util-to-hast": "^13.1.0",
"prettier": "^3.2.5",
"remark": "^15.0.1",
"shiki": "^1.4.0",
"shiki": "^1.5.1",
"tsup": "^8.0.2",
"tsx": "^4.9.3",
"tsx": "^4.10.2",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0"
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ function apply(
const globalHighlighterCache = new Map<string, Promise<Highlighter>>();
const hastParser = unified().use(rehypeParse, { fragment: true });

export default function rehypePrettyCode(
export default rehypePrettyCode;

export function rehypePrettyCode(
options: Options = {},
): void | Transformer<Root, Root> {
const {
Expand Down
4 changes: 2 additions & 2 deletions packages/transformers/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
> [!NOTE]
> Currently in **beta**.
> Currently in **development**.
# `@rehype-pretty/transformers`

[![JSR](https://jsr.io/badges/@rehype-pretty/transformers)](https://jsr.io/@rehype-pretty/transformers)
[![JSR](https://jsr.io/badges/@rehype-pretty/transformers/score)](https://jsr.io/@rehype-pretty/transformers)

```sh
npm install @rehype-pretty/transformers
npx jsr add @rehype-pretty/transformers
```

## Available Transformers
Expand Down
5 changes: 2 additions & 3 deletions packages/transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"description": "Shiki transformer that adds a copy button to code blocks",
"version": "0.13.1",
"homepage": "https://rehype-pretty.pages.dev",
"private": true,
"type": "module",
"main": "./src/index.ts",
"module": "./src/index.ts",
Expand Down Expand Up @@ -47,9 +46,9 @@
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@types/node": "^20.12.10",
"@types/node": "^20.12.11",
"tsup": "^8.0.2",
"tsx": "^4.9.3",
"tsx": "^4.10.2",
"typescript": "^5.4.5"
},
"engines": {
Expand Down
Loading

0 comments on commit 5c06b40

Please sign in to comment.