@v1hz/md2docx 2.6.0 → 2.7.0
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/README.md +128 -373
- package/dist/index.js +248 -98
- package/dist-electron/main.js +152506 -0
- package/package.json +24 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v1hz/md2docx",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "基于 pandoc 的 Markdown 转 Word 工具,自动格式化 Markdown,支持自定义样式,AI 友好,用户友好。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"converter",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"type": "module",
|
|
33
|
+
"main": "dist-electron/main.js",
|
|
33
34
|
"module": "dist/index.js",
|
|
34
35
|
"scripts": {
|
|
35
36
|
"cli": "bun run src/index.ts",
|
|
@@ -38,7 +39,16 @@
|
|
|
38
39
|
"build:exe": "bun run clean:dist && bun build src/index.ts --compile --outfile dist/md2docx.exe",
|
|
39
40
|
"prepack": "bun run build",
|
|
40
41
|
"test": "bun test",
|
|
41
|
-
"check": "bun tsc --noEmit && bun run oxlint && bun run oxfmt"
|
|
42
|
+
"check": "bun tsc --noEmit && bun run oxlint && bun run oxfmt",
|
|
43
|
+
"build:electron": "bun build --target=node --format=esm --outdir=dist-electron --asset-naming=[name].[ext] -e electron ./electron/main.ts && bun build --target=node --format=cjs --outfile=dist-electron/preload.cjs -e electron ./electron/preload.ts",
|
|
44
|
+
"build:frontend": "bun run scripts/generate-icon.ts && vite build --config frontend/vite.config.ts",
|
|
45
|
+
"electron": "bun run build:electron && bun run build:frontend && electron .",
|
|
46
|
+
"dev:frontend": "vite --config frontend/vite.config.ts",
|
|
47
|
+
"dev:electron": "bun run build:electron && electron .",
|
|
48
|
+
"dev": "bun run scripts/dev.ts",
|
|
49
|
+
"pack": "bun run build:electron && bun run build:frontend && electron-builder --win nsis",
|
|
50
|
+
"pack:setup": "bun run pack",
|
|
51
|
+
"pack:portable": "bun run build:electron && bun run build:frontend && electron-builder --win portable"
|
|
42
52
|
},
|
|
43
53
|
"dependencies": {
|
|
44
54
|
"@resvg/resvg-wasm": "2.6.2",
|
|
@@ -46,21 +56,32 @@
|
|
|
46
56
|
"beautiful-mermaid": "^1.1.3",
|
|
47
57
|
"commander": "^15.0.0",
|
|
48
58
|
"docx": "^9.7.1",
|
|
59
|
+
"electron-updater": "^6.8.9",
|
|
60
|
+
"lucide-vue-next": "^1.0.0",
|
|
49
61
|
"pizzip": "^3.2.0",
|
|
50
62
|
"remark-frontmatter": "^5.0.0",
|
|
51
63
|
"remark-gfm": "^4.0.1",
|
|
52
64
|
"remark-parse": "^11.0.0",
|
|
53
65
|
"remark-stringify": "^11.0.0",
|
|
54
66
|
"unified": "^11.0.5",
|
|
67
|
+
"vue": "^3.5.40",
|
|
55
68
|
"xpath": "^0.0.34"
|
|
56
69
|
},
|
|
57
70
|
"devDependencies": {
|
|
71
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
58
72
|
"@types/bun": "^1.3.14",
|
|
59
73
|
"@types/node": "^24.0.0",
|
|
74
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
75
|
+
"@vue/test-utils": "^2.4.11",
|
|
76
|
+
"electron": "^43.2.0",
|
|
77
|
+
"electron-builder": "^26.15.3",
|
|
78
|
+
"happy-dom": "^20.11.1",
|
|
60
79
|
"oxfmt": "^0.58.0",
|
|
61
80
|
"oxlint": "^1.73.0",
|
|
62
81
|
"sharp": "^0.35.3",
|
|
63
|
-
"
|
|
82
|
+
"tailwindcss": "^4.3.3",
|
|
83
|
+
"typescript": "^7.0.2",
|
|
84
|
+
"vite": "^8.1.5"
|
|
64
85
|
},
|
|
65
86
|
"engines": {
|
|
66
87
|
"node": ">=22.12.0"
|