From 8d29c939766f044d910401e60834769cf8e5e44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Sun, 26 Jan 2014 19:57:46 +0800 Subject: [PATCH] feat(config): allow LiveScript configuration files --- lib/cli.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cli.js b/lib/cli.js index b1567af30..5c69c1777 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -14,6 +14,14 @@ try { // Intentinally blank - ignore if coffee-script is not available. } +// LiveScript is required here to enable config files written in LiveScript. +// It's not directly used in this file, and not required. +try { + require('LiveScript'); +} catch (e) { + // Intentionally blank - ignore if LiveScript is not available. +} + var util = require('util'); var path = require('path'); var fs = require('fs');