@axium/server 0.44.2 → 0.44.3

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/dist/cli/index.js CHANGED
@@ -127,10 +127,11 @@ program
127
127
  program
128
128
  .command('serve')
129
129
  .description('Start the Axium server')
130
- .option('-p, --port <port>', 'the port to listen on', Number.parseInt, config.web.port)
130
+ .option('-p, --port <port>', 'the port to listen on', Number.parseInt)
131
131
  .option('--ssl <prefix>', 'the prefix for the cert.pem and key.pem SSL files')
132
132
  .option('-b, --build <path>', 'the path to the handler build')
133
133
  .action(async (opt) => {
134
+ opt.port ||= config.web.port;
134
135
  if (opt.port < 1 || opt.port > 65535)
135
136
  io.exit('Invalid port');
136
137
  const server = await serve({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.44.2",
3
+ "version": "0.44.3",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",