@youtyan/code-viewer 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youtyan/code-viewer",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Local browser-based code and git diff viewer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "scripts": {
30
30
  "build": "bun run build:web && bun run build:server",
31
31
  "build:web": "bun build --target=browser --format=iife --outfile=web/app.js web-src/app.ts && bun build --target=browser --format=esm --outfile=web/mermaid.js web-src/mermaid-entry.ts && bun build --target=browser --format=esm --outfile=web/shiki.js web-src/shiki-entry.ts && bun build --target=browser --format=iife --outfile=web/vendor/highlight.js/highlight.min.js web-src/highlight-entry.ts && node scripts/generate-third-party-notices.mjs",
32
- "build:server": "bun build --target=node --format=esm --outfile=dist/code-viewer.js web-src/server/cli.ts",
32
+ "build:server": "bun build --target=node --format=esm --outfile=dist/code-viewer.js --external pg --external mysql2/promise --external @redis/client web-src/server/cli.ts",
33
33
  "check": "bun run typecheck",
34
34
  "typecheck": "tsc --noEmit",
35
35
  "check:bundle": "node scripts/check-bundle.mjs",
@@ -68,6 +68,7 @@
68
68
  "@happy-dom/global-registrator": "^20.10.6",
69
69
  "@types/bun": "1.3.13",
70
70
  "@types/markdown-it": "14.1.2",
71
+ "@types/pg": "8.20.0",
71
72
  "highlight.js": "11.9.0",
72
73
  "markdown-it": "14.1.1",
73
74
  "markdown-it-anchor": "9.2.0",
@@ -81,5 +82,10 @@
81
82
  },
82
83
  "engines": {
83
84
  "node": ">=20.0.0"
85
+ },
86
+ "dependencies": {
87
+ "@redis/client": "6.1.0",
88
+ "mysql2": "3.22.6",
89
+ "pg": "8.22.0"
84
90
  }
85
91
  }