dependency-cruiser
Advanced tools
Comparing version 1.6.3 to 1.7.0
{ | ||
"name": "dependency-cruiser", | ||
"version": "1.6.3", | ||
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript. ES6, CommonJS, AMD.", | ||
"version": "1.7.0", | ||
"description": "Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.", | ||
"bin": { | ||
@@ -22,2 +22,3 @@ "dependency-cruiser": "bin/dependency-cruise", | ||
"typescript", | ||
"coffeescript", | ||
"dependencies", | ||
@@ -56,2 +57,3 @@ "ES6", | ||
"chalk": "1.1.3", | ||
"coffee-script": "1.12.0", | ||
"commander": "2.9.0", | ||
@@ -58,0 +60,0 @@ "figures": "2.0.0", |
@@ -6,2 +6,3 @@ "use strict"; | ||
const typescript = require('typescript'); | ||
const coffeeScript = require('coffee-script'); | ||
const fs = require('fs'); | ||
@@ -32,2 +33,6 @@ const _ = require('lodash'); | ||
if (path.extname(pFileName) === ".coffee"){ | ||
lFile = coffeeScript.compile(lFile); | ||
} | ||
try { | ||
@@ -34,0 +39,0 @@ return acorn.parse(lFile, {sourceType: 'module'}); |
@@ -17,3 +17,3 @@ "use strict"; | ||
} | ||
if ([".js", ".ts"].some(pExt => path.extname(pFileName) === pExt)){ | ||
if ([".js", ".ts", ".coffee"].some(pExt => path.extname(pFileName) === pExt)){ | ||
return pSum.concat(path.join(pDirName, pFileName)); | ||
@@ -20,0 +20,0 @@ } |
@@ -23,3 +23,3 @@ "use strict"; | ||
pBaseDir, | ||
resolve.sync(pModuleName, {basedir: pFileDir, extensions: [".js", ".ts", ".d.ts"]}) | ||
resolve.sync(pModuleName, {basedir: pFileDir, extensions: [".js", ".ts", ".d.ts", ".coffee"]}) | ||
); | ||
@@ -26,0 +26,0 @@ lRetval.followable = (path.extname(lRetval.resolved) !== ".json"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
424541
1552
12
37
+ Addedcoffee-script@1.12.0
+ Addedcoffee-script@1.12.0(transitive)