Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"@braintree/sanitize-url": "^7.1.1",
"@cloudflare/workers-types": "catalog:",
"@deno/kv": "^0.8.4",
"@fedify/amqp": "workspace:",
"@fedify/cfworkers": "workspace:",
"@fedify/express": "workspace:",
"@fedify/fastify": "workspace:",
"@fedify/fedify": "workspace:",
"@fedify/h3": "workspace:",
"@fedify/hono": "workspace:",
"@fedify/koa": "workspace:",
"@fedify/lint": "workspace:",
"@fedify/nestjs": "workspace:",
"@fedify/next": "workspace:",
"@fedify/postgres": "workspace:",
"@fedify/redis": "workspace:",
"@fedify/sqlite": "workspace:",
"@fedify/sveltekit": "workspace:",
"@fedify/testing": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/vocab-runtime": "workspace:",
"@fedify/relay": "workspace:",
"@fedify/amqp": "workspace:^",
"@fedify/cfworkers": "workspace:^",
"@fedify/express": "workspace:^",
"@fedify/fastify": "workspace:^",
"@fedify/fedify": "workspace:^",
"@fedify/h3": "workspace:^",
"@fedify/hono": "workspace:^",
"@fedify/koa": "workspace:^",
"@fedify/lint": "workspace:^",
"@fedify/nestjs": "workspace:^",
"@fedify/next": "workspace:^",
"@fedify/postgres": "workspace:^",
"@fedify/redis": "workspace:^",
"@fedify/sqlite": "workspace:^",
"@fedify/sveltekit": "workspace:^",
"@fedify/testing": "workspace:^",
"@fedify/vocab": "workspace:^",
"@fedify/vocab-runtime": "workspace:^",
"@fedify/relay": "workspace:^",
"@hono/node-server": "^1.13.7",
"@js-temporal/polyfill": "catalog:",
"@logtape/file": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions examples/cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"wrangler": "^4.18.0"
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:"
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^"
}
}
2 changes: 1 addition & 1 deletion examples/elysia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@fedify/elysia": "workspace:*",
"@fedify/fedify": "workspace:*",
"@fedify/vocab": "workspace:",
"@fedify/vocab": "workspace:^",
"elysia": "catalog:"
}
}
6 changes: 3 additions & 3 deletions examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@fedify/express": "workspace:",
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/express": "workspace:^",
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^",
"@logtape/logtape": "catalog:",
"express": "catalog:"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"dev": "tsx watch index.ts"
},
"dependencies": {
"@fedify/fastify": "workspace:",
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/fastify": "workspace:^",
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^",
"fastify": "catalog:"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@fedify/koa": "workspace:",
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/koa": "workspace:^",
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^",
"@logtape/logtape": "catalog:",
"koa": "catalog:"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/next-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "eslint"
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@fedify/next": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/fedify": "workspace:^",
"@fedify/next": "workspace:^",
"@fedify/vocab": "workspace:^",
"next": "15.5.0",
"react": "19.1.0",
"react-dom": "19.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/next14-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"test": "true"
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^",
"@logtape/logtape": "catalog:",
"next": "^14.0.0",
"react": "19.0.0-rc-7771d3a7-20240827",
Expand Down
4 changes: 2 additions & 2 deletions examples/next15-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"test": "true"
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/fedify": "workspace:^",
"@fedify/vocab": "workspace:^",
"next": "15.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
6 changes: 3 additions & 3 deletions examples/sveltekit-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"lint": "prettier --check . && eslint ."
},
"dependencies": {
"@fedify/fedify": "workspace:",
"@fedify/sveltekit": "workspace:",
"@fedify/vocab": "workspace:",
"@fedify/fedify": "workspace:^",
"@fedify/sveltekit": "workspace:^",
"@fedify/vocab": "workspace:^",
"x-forwarded-fetch": "^0.2.0"
},
"devDependencies": {
Expand Down
37 changes: 37 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ depends = [
"check:types",
"check:md",
"check-versions",
"check:manifest:workspace-protocol",
]

[tasks."check:fmt"]
Expand Down Expand Up @@ -75,6 +76,42 @@ else
fi
'''

[tasks."check:manifest:workspace-protocol"]
description = "Check for invalid workspace: specifiers without version (*, ^, ~)"
run = '''
found=0
for file in $(find . -name 'package.json' -not -path '*/node_modules/*'); do
invalid=$(jq -r '
[
(.dependencies // {}),
(.devDependencies // {}),
(.peerDependencies // {}),
(.optionalDependencies // {})
]
| add
| to_entries[]
| select(.value == "workspace:")
| " \(.key)"
' "$file" 2>/dev/null)
if [ -n "$invalid" ]; then
if [ "$found" -eq 0 ]; then
echo "Error: Found invalid workspace: specifiers (missing *, ^, or ~):"
echo ""
fi
echo "$file:"
echo "$invalid"
found=1
fi
done

if [ "$found" -eq 1 ]; then
echo ""
echo "Valid formats: workspace:*, workspace:^, workspace:~"
exit 1
fi
echo "All workspace: specifiers are valid"
'''

[tasks.fmt]
description = "Format the codebase"
run = "deno fmt && hongdown --write"
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"fastify-plugin": "catalog:"
},
"peerDependencies": {
"@fedify/fedify": "workspace:",
"@fedify/fedify": "workspace:^",
"fastify": "catalog:"
},
"devDependencies": {
Expand Down
Loading
Loading