From 3a31064ded799ad7a0eec4f99e91f86d071f29f2 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 19 Dec 2013 18:50:31 +0400 Subject: [PATCH] deal with js-yaml warning --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 0af0126cf..2d1626717 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -13,7 +13,7 @@ var pkg_file = '../package.yaml' , commander = require('commander') , server = require('./index') , crypto = require('crypto') - , pkg = require(pkg_file) + , pkg = yaml.safeLoad(fs.readFileSync(__dirname + '/' + pkg_file, 'utf8')) commander .option('-l, --listen <[host:]port>', 'host:port number to listen on (default: localhost:4873)')