Skip to content
Permalink
Browse files

test(fix): do not register coffee if lib

  • Loading branch information
jyounce committed Mar 30, 2016
1 parent 5e93601 commit 444043a1e024531db14093314707e89d8170a194
Showing with 8 additions and 8 deletions.
  1. +4 −4 lib/index.js
  2. +4 −4 src/index.js
@@ -7,11 +7,11 @@
*/
module.exports = function() {
var gulp, options;
var isDist, path, parentDir;
var isLib, path, parentDir;

path = require('path');
parentDir = path.basename(__dirname); // dist or lib
isDist = parentDir == 'dist';
parentDir = path.basename(__dirname); // src or lib
isLib = parentDir == 'lib';

if (arguments.length) {
var getGulp = function(args) {
@@ -26,6 +26,6 @@ module.exports = function() {
options = getOptions(arguments)
}

if (!isDist) require('coffee-script/register');
if (!isLib) require('coffee-script/register');
return require('./gulpfile')(gulp, options)
}
@@ -7,11 +7,11 @@
*/
module.exports = function() {
var gulp, options;
var isDist, path, parentDir;
var isLib, path, parentDir;

path = require('path');
parentDir = path.basename(__dirname); // dist or lib
isDist = parentDir == 'dist';
parentDir = path.basename(__dirname); // src or lib
isLib = parentDir == 'lib';

if (arguments.length) {
var getGulp = function(args) {
@@ -26,6 +26,6 @@ module.exports = function() {
options = getOptions(arguments)
}

if (!isDist) require('coffee-script/register');
if (!isLib) require('coffee-script/register');
return require('./gulpfile')(gulp, options)
}

0 comments on commit 444043a

Please sign in to comment.
You can’t perform that action at this time.