@dataform-co/build.js
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -56,5 +56,3 @@ #!/usr/bin/env node | ||
}), argv => { | ||
console.log(argv); | ||
var ctx = index_1.Context.create(argv); | ||
console.log(ctx); | ||
var config = buildConfig(argv); | ||
@@ -61,0 +59,0 @@ graph_1.graph(rootDir, config, ctx) |
@@ -43,5 +43,16 @@ "use strict"; | ||
if (dep.indexOf("//") == 0) { | ||
return dep; | ||
if (dep.indexOf(":") < 0) { | ||
var splits = dep.split("/"); | ||
return dep + ":" + splits[splits.length - 1]; | ||
} | ||
else { | ||
return dep; | ||
} | ||
} | ||
return `//${baseNamePath}${dep}`; | ||
else if (dep.indexOf(":") == 0) { | ||
return `//${baseNamePath}${dep}`; | ||
} | ||
else { | ||
throw Error(`Invalid dependency ${dep} in rule ${rule.fullName}`); | ||
} | ||
}); | ||
@@ -48,0 +59,0 @@ rule.resolvedCache = rule.cache |
@@ -76,5 +76,3 @@ #!/usr/bin/env node | ||
argv => { | ||
console.log(argv); | ||
var ctx = Context.create(argv); | ||
console.log(ctx); | ||
var config = buildConfig(argv); | ||
@@ -81,0 +79,0 @@ graph(rootDir, config, ctx) |
12
graph.ts
@@ -54,5 +54,13 @@ import { promisify } from "util"; | ||
if (dep.indexOf("//") == 0) { | ||
return dep; | ||
if (dep.indexOf(":") < 0) { | ||
var splits = dep.split("/"); | ||
return dep + ":" + splits[splits.length - 1]; | ||
} else { | ||
return dep; | ||
} | ||
} else if (dep.indexOf(":") == 0) { | ||
return `//${baseNamePath}${dep}`; | ||
} else { | ||
throw Error(`Invalid dependency ${dep} in rule ${rule.fullName}`); | ||
} | ||
return `//${baseNamePath}${dep}`; | ||
}); | ||
@@ -59,0 +67,0 @@ rule.resolvedCache = rule.cache |
{ | ||
"name": "@dataform-co/build.js", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Simple, un-opinionated JavaScript build scripting.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56599
1096