Skip to content

Commit 12f70ac

Browse files
authored
build: patch fastify-socket.io (#1147)
1 parent fd67dee commit 12f70ac

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@
165165
"@confluentinc/kafka-javascript",
166166
"esbuild"
167167
],
168-
"patchedDependencies": {}
168+
"ignoredBuiltDependencies": [
169+
"fastify-socket.io"
170+
],
171+
"patchedDependencies": {
172+
"fastify-socket.io": "patches/fastify-socket.io.patch"
173+
}
169174
}
170175
}

patches/fastify-socket.io.patch

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/package.json b/package.json
2+
index 966af0c67347ead120d201dc6ace8d6fb4298566..88fc403ec73462b2a9ee9fc574a7f0acf3b54134 100644
3+
--- a/package.json
4+
+++ b/package.json
5+
@@ -31,18 +31,9 @@
6+
"dist"
7+
],
8+
"peerDependencies": {
9+
- "fastify": "4.x.x",
10+
+ "fastify": "^4 || ^5",
11+
"socket.io": ">=4"
12+
},
13+
"scripts": {
14+
- "build": "tsc --noEmit && tsup-node",
15+
- "format": "rome format --write .",
16+
- "lint": "rome check .",
17+
- "preinstall": "npx only-allow pnpm",
18+
- "prepublish": "pnpm build",
19+
- "release": "pnpm build && changeset publish",
20+
- "test": "tsx --test ./test/*.ts",
21+
- "test:watch": "tsx --watch --test ./test/*.ts",
22+
- "test:coverage": "c8 --all --src src --reporter lcov --reporter text tsx --test ./test/*.ts"
23+
}
24+
}

pnpm-lock.yaml

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)