+5
-4
@@ -1,2 +0,3 @@ | ||
| var SourceMapConsumer, SourceMapGenerator, path, readFileSync, writeFileSync, _ref, _ref2; | ||
| // Generated by CoffeeScript 1.6.3 | ||
| var SourceMapConsumer, SourceMapGenerator, path, readFileSync, writeFileSync, _ref, _ref1; | ||
@@ -7,3 +8,3 @@ _ref = require('fs'), readFileSync = _ref.readFileSync, writeFileSync = _ref.writeFileSync; | ||
| _ref2 = require('source-map'), SourceMapConsumer = _ref2.SourceMapConsumer, SourceMapGenerator = _ref2.SourceMapGenerator; | ||
| _ref1 = require('source-map'), SourceMapConsumer = _ref1.SourceMapConsumer, SourceMapGenerator = _ref1.SourceMapGenerator; | ||
@@ -22,3 +23,3 @@ exports.cat = function(inputMapFiles, outJSFile, outMapFile) { | ||
| src = readFileSync(srcPath, 'utf-8'); | ||
| src = src.replace(/\/\/@\ssourceMappingURL[^\r\n]*/g, '//'); | ||
| src = src.replace(/\/\/[@#]\ssourceMappingURL[^\r\n]*/g, '//'); | ||
| buffer.push(src); | ||
@@ -43,5 +44,5 @@ map.eachMapping(function(mapping) { | ||
| } | ||
| buffer.push("//@ sourceMappingURL=" + (path.relative(path.dirname(outJSFile), outMapFile))); | ||
| buffer.push("//# sourceMappingURL=" + (path.relative(path.dirname(outJSFile), outMapFile))); | ||
| writeFileSync(outJSFile, buffer.join('\n'), 'utf-8'); | ||
| return writeFileSync(outMapFile, generator.toString(), 'utf-8'); | ||
| }; |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "main": "lib", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "engines": { "node" : ">=0.4.0" }, | ||
@@ -8,0 +8,0 @@ "maintainers": [{ |
+2
-2
@@ -17,3 +17,3 @@ {readFileSync, writeFileSync} = require('fs') | ||
| src = readFileSync(srcPath, 'utf-8') | ||
| src = src.replace(/\/\/@\ssourceMappingURL[^\r\n]*/g, '//') | ||
| src = src.replace(/\/\/[@#]\ssourceMappingURL[^\r\n]*/g, '//') | ||
| buffer.push(src) | ||
@@ -37,5 +37,5 @@ | ||
| buffer.push "//@ sourceMappingURL=#{path.relative(path.dirname(outJSFile), outMapFile)}" | ||
| buffer.push "//# sourceMappingURL=#{path.relative(path.dirname(outJSFile), outMapFile)}" | ||
| writeFileSync(outJSFile, buffer.join('\n'), 'utf-8') | ||
| writeFileSync(outMapFile, generator.toString(), 'utf-8') |
22611
0.18%466
0.22%