From da0f842ad8e3f02f609661b7c8ca4ca095520c31 Mon Sep 17 00:00:00 2001 From: Yanis Wang Date: Mon, 2 May 2016 20:38:32 +0800 Subject: [PATCH] support node v0.10 fix #132 --- bin/formatter.js | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/formatter.js b/bin/formatter.js index f5dee44a4..a95f5b6d5 100644 --- a/bin/formatter.js +++ b/bin/formatter.js @@ -1,6 +1,7 @@ var path = require('path'); var events = require('events'); var glob = require('glob'); +path.parse = path.parse || require('path-parse'); var mapFormatters; var arrSupportedFormatters; diff --git a/package.json b/package.json index 37764c154..f22f7a4c3 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "glob": "5.0.15", "jshint": "2.8.0", "parse-glob": "3.0.4", + "path-parse": "1.0.5", "request": "2.72.0", "strip-json-comments": "1.0.4", "xml": "1.0.0"