Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 0257b5f

Browse files
committed
refactor(config): amend to coffeescript - do not require, but allow
1 parent 7259614 commit 0257b5f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/cli.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
*/
77

88
// Coffee is required here to enable config files written in coffee-script.
9-
// It's not directly used in this file.
10-
require('coffee-script');
9+
// It's not directly used in this file, and not required.
10+
try {
11+
require('coffee-script');
12+
} catch (e) {
13+
// Intentinally blank - ignore if coffee-script is not available.
14+
}
1115

1216
var util = require('util');
1317
var path = require('path')

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"saucelabs": "~0.1.0",
1818
"glob": ">=3.1.14",
1919
"adm-zip": ">=0.4.2",
20-
"optimist": "~0.6.0",
21-
"coffee-script": "~1.6.3"
20+
"optimist": "~0.6.0"
2221
},
2322
"devDependencies": {
2423
"expect.js": "~0.2.0",

0 commit comments

Comments
 (0)