Skip to content

Commit 72dfd7c

Browse files
committed
Update portfinder to 1.0.32
1 parent 2b0b59c commit 72dfd7c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

packages/remix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@remix-run/node": "^1.4.3",
4141
"@remix-run/react": "^1.4.3",
4242
"@types/express": "^4.17.14",
43-
"portfinder": "^1.0.28"
43+
"portfinder": "^1.0.32"
4444
},
4545
"peerDependencies": {
4646
"@remix-run/node": "1.x",
@@ -69,7 +69,7 @@
6969
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
7070
"test": "yarn test:unit",
7171
"test:integration": "run-s test:integration:v1 test:integration:v2",
72-
"test:integration:v1": "run-s test:integration:clean test:integration:prepare test:integration:client test:integration:server",
72+
"test:integration:v1": "run-s test:integration:prepare test:integration:client test:integration:server",
7373
"test:integration:v2": "export REMIX_VERSION=2 && run-s test:integration:v1",
7474
"test:integration:ci": "run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server",
7575
"test:integration:prepare": "(cd test/integration && yarn)",

packages/remix/test/integration/test/server/utils/helpers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ export class RemixTestEnv extends TestEnv {
2222

2323
app.all('*', requestHandlerFactory({ build: require('../../../build') }));
2424

25-
getPort((_, port) => {
25+
getPort((err, port) => {
26+
if (err) {
27+
console.warn('portfinder failed to find an open port, using 8000', err);
28+
port = 8000;
29+
}
30+
2631
serverPort = port;
2732
const server = app.listen(port, () => {
2833
resolve(server);

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21266,7 +21266,7 @@ [email protected], pnp-webpack-plugin@^1.6.4:
2126621266
dependencies:
2126721267
ts-pnp "^1.1.6"
2126821268

21269-
portfinder@^1.0.26, portfinder@^1.0.28, portfinder@^1.0.29:
21269+
portfinder@^1.0.26, portfinder@^1.0.29, portfinder@^1.0.32:
2127021270
version "1.0.32"
2127121271
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81"
2127221272
integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==

0 commit comments

Comments
 (0)