Skip to content

Commit

Permalink
chore: update dependencies (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored Jan 17, 2024
1 parent 7a69799 commit 5ffe55c
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 59 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions examples/astro/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import 'dotenv/config';
Object.assign(process.env, { ASTRO_TELEMETRY_DISABLED: 1 });

import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';
Expand Down
Binary file modified examples/astro/bun.lockb
Binary file not shown.
14 changes: 7 additions & 7 deletions examples/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^2.0.3",
"@astrojs/mdx": "^2.0.4",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.0.8",
"rehype-pretty-code": "^0.12.3",
"shikiji": "^0.9.17",
"tailwindcss": "^3.4.0"
"astro": "^4.1.3",
"rehype-pretty-code": "^0.12.4",
"shikiji": "^0.10.0-beta.4",
"tailwindcss": "^3.4.1"
},
"devDependencies": {
"@types/node": "^20.10.5",
"@astrojs/check": "^0.3.4",
"@types/node": "^20.11.5",
"@astrojs/check": "^0.4.1",
"typescript": "^5.3.3"
}
}
87 changes: 44 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,11 @@
"name": "rehype-pretty-code",
"version": "0.12.5",
"description": "Beautiful code for your MD/MDX docs.",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
"repository": {
"type": "git",
"url": "git+https://github.com/atomiks/rehype-pretty-code.git"
},
"files": [
"dist",
"package.json"
],
"type": "module",
"scripts": {
"build": "tsup --config=tsup.config.ts",
"test": "vitest",
Expand All @@ -32,6 +22,46 @@
"prepublishOnly": "NODE_ENV='production' bun run build",
"check-package": "bunx publint@latest --strict && bunx @arethetypeswrong/cli --pack --ignore-rules cjs-resolves-to-esm"
},
"dependencies": {
"@types/hast": "^3.0.3",
"hast-util-to-string": "^3.0.0",
"parse-numeric-range": "^1.3.0",
"rehype-parse": "^9.0.0",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.5.2",
"@types/bun": "^1.0.2",
"@types/node": "^20.11.4",
"bumpp": "^9.2.1",
"bun": "^1.0.23",
"hast-util-to-html": "^9.0.0",
"husky": "^8.0.3",
"mdast-util-to-hast": "^13.1.0",
"prettier": "^3.2.3",
"remark": "^15.0.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vitest": "^1.2.0",
"shikiji": "^0.10.0-beta.4",
"shikiji-transformers": "^0.10.0-beta.4"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"package.json"
],
"engines": {
"node": ">=18"
},
Expand All @@ -40,37 +70,8 @@
],
"author": "https://github.com/atomiks",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/atomiks/rehype-pretty-code.git"
},
"homepage": "https://rehype-pretty-code.netlify.app",
"peerDependencies": {
"shikiji": "^0.7.0 || ^0.8.0 || ^0.9.0"
},
"devDependencies": {
"@biomejs/biome": "^1.5.1",
"@types/bun": "^1.0.0",
"@types/node": "^20.10.6",
"bumpp": "^9.2.1",
"hast-util-to-html": "^8.0.3",
"husky": "^8.0.3",
"mdast-util-to-hast": "^12.1.0",
"prettier": "^3.1.1",
"remark": "^15.0.1",
"shikiji": "^0.9.17",
"shikiji-transformers": "^0.9.9",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vitest": "^1.1.1"
},
"dependencies": {
"@types/hast": "^3.0.3",
"hast-util-to-string": "^3.0.0",
"parse-numeric-range": "^1.3.0",
"rehype-parse": "^9.0.0",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0"
}
}
8 changes: 5 additions & 3 deletions scripts/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ if (workspace.includes(',')) {
runScriptForWorkspace(workspace);
else {
const excluded = workspace.startsWith('-') && workspace.slice(1);
const packageJson = await file(
join(import.meta.dir, '../package.json'),
).json();

const packageJson = JSON.parse(
await file(join(import.meta.dir, '../package.json')).text(),
);

const workspaces = packageJson.workspaces as string[];
for (const w of workspaces) {
if (w === excluded) continue;
Expand Down
Binary file modified website/bun.lockb
Binary file not shown.
3 changes: 3 additions & 0 deletions website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import process from 'node:process';
Object.assign(process.env, { NEXT_TELEMETRY_DISABLED: '1' });

/**
* @typedef {import('next').NextConfig} NextConfig
* @typedef {Array<((config: NextConfig) => NextConfig)>} NextConfigPlugins
Expand Down
16 changes: 10 additions & 6 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.16",
"next": "^14.0.4",
"postcss": "^8.4.32",
"react": "18.2.0",
"postcss": "^8.4.33",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rehype-pretty-code": "^0.12.3",
"rehype-pretty-code": "^0.12.4",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.0",
"shikiji": "^0.9.17",
"tailwindcss": "^3.4.0"
"shikiji": "^0.10.0-beta.4",
"tailwindcss": "^3.4.1"
},
"devDependencies": {
"@types/mdx": "^2.0.10",
Expand All @@ -29,6 +29,10 @@
"@types/react-dom": "^18.2.18",
"typescript": "^5.3.3"
},
"browserslist": ["> 0.5%", "not dead", "not op_mini all"],
"browserslist": [
"> 0.5%",
"not dead",
"not op_mini all"
],
"sideEffects": false
}

0 comments on commit 5ffe55c

Please sign in to comment.