@wave-rf/cloudflare-md-router 0.2.1 → 0.3.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 +53 -0
- package/bin/cli.mjs +34 -0
- package/bin/dev.mjs +575 -0
- package/bin/lib.mjs +682 -0
- package/package.json +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wave-rf/cloudflare-md-router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Cloudflare Worker that serves a `.md` twin of any static page when the request is from a known LLM crawler or explicitly asks for `text/markdown`. Falls back to the HTML response otherwise.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"type": "module",
|
|
32
32
|
"main": "./src/index.ts",
|
|
33
33
|
"types": "./src/index.ts",
|
|
34
|
+
"bin": {
|
|
35
|
+
"cloudflare-md-router": "./bin/cli.mjs"
|
|
36
|
+
},
|
|
34
37
|
"exports": {
|
|
35
38
|
".": "./src/index.ts",
|
|
36
39
|
"./worker": "./src/worker.ts",
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
},
|
|
39
42
|
"files": [
|
|
40
43
|
"src",
|
|
44
|
+
"bin",
|
|
41
45
|
"README.md",
|
|
42
46
|
"LICENSE"
|
|
43
47
|
],
|
|
@@ -53,15 +57,21 @@
|
|
|
53
57
|
"lint": "biome lint .",
|
|
54
58
|
"format": "biome format --write .",
|
|
55
59
|
"check": "biome check .",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
60
|
+
"check:release": "node scripts/check-release-config.mjs",
|
|
61
|
+
"verify": "biome check . && pnpm run typecheck && pnpm run test && pnpm run check:release && bash scripts/ci-marker.sh write",
|
|
62
|
+
"setup": "git config core.hooksPath .githooks",
|
|
63
|
+
"test": "node --test"
|
|
58
64
|
},
|
|
59
65
|
"peerDependencies": {
|
|
60
66
|
"@cloudflare/workers-types": ">=4.0.0"
|
|
61
67
|
},
|
|
62
68
|
"devDependencies": {
|
|
63
69
|
"@biomejs/biome": "^2.4.15",
|
|
64
|
-
"@cloudflare/workers-types": "^
|
|
70
|
+
"@cloudflare/workers-types": "^5.20260706.1",
|
|
71
|
+
"@semantic-release/commit-analyzer": "13.0.1",
|
|
72
|
+
"@semantic-release/release-notes-generator": "14.1.1",
|
|
73
|
+
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
74
|
+
"semantic-release": "25.0.9",
|
|
65
75
|
"typescript": "^6.0.3"
|
|
66
76
|
}
|
|
67
77
|
}
|