cmacc-compiler
Advanced tools
Comparing version 1.0.10 to 1.0.11
{ | ||
"name": "cmacc-compiler", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Cmacc Compiler", | ||
@@ -24,4 +24,5 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"cmacc-lib-entity": "^1.0.0" | ||
"cmacc-lib-entity": "^1.0.0", | ||
"mocha": "^3.2.0" | ||
} | ||
} |
@@ -17,3 +17,3 @@ var fs = require('fs'); | ||
try { | ||
text = fetch(file); | ||
text = fetch(file, options); | ||
} catch (e) { | ||
@@ -20,0 +20,0 @@ throw(e) |
@@ -7,4 +7,6 @@ var fs = require('fs'); | ||
function fetch(file) { | ||
function fetch(file, options) { | ||
options = options || {} | ||
var urlObj = url.parse(file); | ||
@@ -56,3 +58,4 @@ | ||
var findRoot = require('find-root'); | ||
var packageRoot = findRoot(process.cwd()) | ||
var packageRoot = options.path ? findRoot(options.path) : findRoot(process.cwd()); | ||
var nodeModules = path.join(packageRoot, 'node_modules') | ||
@@ -59,0 +62,0 @@ var location = path.join(nodeModules, decodeURI(urlObj.host), decodeURI(urlObj.pathname)); |
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
102259
1953
2