We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f54a96c commit ccb50d9Copy full SHA for ccb50d9
1 file changed
bin/lib/options.js
@@ -1,4 +1,5 @@
1
const fs = require('fs')
2
+const path = require('path')
3
4
module.exports = [
5
// {
@@ -11,7 +12,8 @@ module.exports = [
11
12
help: 'Root folder to serve (defaut: \'./\')',
13
question: 'Path to the folder you want to serve. Default is',
14
default: './',
- prompt: true
15
+ prompt: true,
16
+ filter: (value) => path.resolve(value)
17
},
18
{
19
name: 'port',
0 commit comments