Comparing version 8.1.4 to 8.2.0
@@ -75,2 +75,4 @@ #!/usr/bin/env node | ||
-c, --config Specify custom path to \`serve.json\` | ||
{bold ENDPOINTS} | ||
@@ -168,3 +170,3 @@ | ||
const loadConfig = async (cwd, entry) => { | ||
const loadConfig = async (cwd, entry, args) => { | ||
const files = [ | ||
@@ -176,2 +178,6 @@ 'serve.json', | ||
if (args['--config']) { | ||
files.unshift(args['--config']); | ||
} | ||
const config = {}; | ||
@@ -256,7 +262,9 @@ | ||
'--debug': Boolean, | ||
'--config': String, | ||
'-h': '--help', | ||
'-v': '--version', | ||
'-l': '--listen', | ||
'-s': '--single', | ||
'-d': '--debug', | ||
'-s': '--single', | ||
'-c': '--config', | ||
// This is deprecated and only for backwards-compatibility. | ||
@@ -295,3 +303,3 @@ '-p': '--listen' | ||
const config = await loadConfig(cwd, entry); | ||
const config = await loadConfig(cwd, entry, args); | ||
@@ -298,0 +306,0 @@ if (args['--single']) { |
{ | ||
"name": "serve", | ||
"version": "8.1.4", | ||
"version": "8.2.0", | ||
"description": "Static file serving and directory listing", | ||
@@ -43,5 +43,5 @@ "scripts": { | ||
"chalk": "2.4.1", | ||
"serve-handler": "3.1.2", | ||
"serve-handler": "3.2.0", | ||
"update-check": "1.5.2" | ||
} | ||
} |
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
13054
249
+ Addedserve-handler@3.2.0(transitive)
- Removedserve-handler@3.1.2(transitive)
Updatedserve-handler@3.2.0