Skip to content

Commit

Permalink
fix(build-resources): nested module-referencing in module build resou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
niieani committed Jun 22, 2016
1 parent 7c32cea commit f67ba69
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/build-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,9 @@ function getResourcesOfPackage(resources = {}, packagePath = undefined, relative
resource = resource instanceof Object && !Array.isArray(resource) ? resource : { path: resource };
let fromPaths = Array.isArray(resource.path) ? resource.path : [resource.path];
for (let fromPath of fromPaths) {
if (externalModule) {
fromPath = path.join(externalModule, fromPath);
}
debug(`<${externalModule || path.basename(packagePath)}> [resolving] '${fromPath}'`);
if (externalModule && fromPath.indexOf('.') !== 0)
fromPath = fixRelativeFromPath(fromPath, undefined, undefined, externalModule);
processFromPath(resources, fromPath, resource, packagePath, relativeToDir, overrideBlock);
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions test/node_modules/aurelia-bootstrapper/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"license": "MIT",
"dependencies": {
"aurelia-framework": "^1.0.0-beta.1.1.1",
"aurelia-bootstrapper": "^1.0.0-beta.1.0.0",
"aurelia-templating-resources": "^1.0.0-beta.1.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit f67ba69

Please sign in to comment.