@web/dev-server
Advanced tools
Comparing version 0.0.11 to 0.0.12
# @web/dev-server | ||
## 0.0.12 | ||
### Patch Changes | ||
- b939ea0: use a deterministic starting point when finding an available port | ||
- 5ffc1a6: add port CLI flag | ||
## 0.0.11 | ||
@@ -4,0 +11,0 @@ |
@@ -57,4 +57,3 @@ "use strict"; | ||
if (typeof finalConfig.port !== 'number') { | ||
const port = 9000 + Math.floor(Math.random() * 1000); | ||
finalConfig.port = await portfinder_1.getPortPromise({ port }); | ||
finalConfig.port = await portfinder_1.getPortPromise({ port: 8000 }); | ||
} | ||
@@ -61,0 +60,0 @@ // map flags to plugin |
@@ -52,2 +52,13 @@ "use strict"; | ||
{ | ||
name: 'port', | ||
alias: 'p', | ||
description: 'Port to bind the server to.', | ||
type: Number, | ||
}, | ||
{ | ||
name: 'hostname', | ||
alias: 'h', | ||
description: 'Hostname to bind the server to.', | ||
}, | ||
{ | ||
name: 'esbuild-target', | ||
@@ -54,0 +65,0 @@ type: String, |
{ | ||
"name": "@web/dev-server", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -71,4 +71,3 @@ import { getPortPromise } from 'portfinder'; | ||
if (typeof finalConfig.port !== 'number') { | ||
const port = 9000 + Math.floor(Math.random() * 1000); | ||
finalConfig.port = await getPortPromise({ port }); | ||
finalConfig.port = await getPortPromise({ port: 8000 }); | ||
} | ||
@@ -75,0 +74,0 @@ |
@@ -66,2 +66,13 @@ import commandLineArgs from 'command-line-args'; | ||
{ | ||
name: 'port', | ||
alias: 'p', | ||
description: 'Port to bind the server to.', | ||
type: Number, | ||
}, | ||
{ | ||
name: 'hostname', | ||
alias: 'h', | ||
description: 'Hostname to bind the server to.', | ||
}, | ||
{ | ||
name: 'esbuild-target', | ||
@@ -68,0 +79,0 @@ type: String, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74452
1267