Skip to content

Commit

Permalink
fix: add maindir support to blueprints for addon and app
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Sep 2, 2017
1 parent 4b13376 commit 4adf3aa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions blueprints/addon/files/__name__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"addon"
],
"main": "app/addon.js",
"mainDir": "dist",
"license": "MIT",
"dependencies": {
"bluebird": "^3.4.6",
Expand Down
1 change: 1 addition & 0 deletions blueprints/addon/files/__name__/test/dummy/app/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'main-dir';
import sourcemaps from 'source-map-support';
import path from 'path';
import Application from './application';
Expand Down
1 change: 1 addition & 0 deletions blueprints/app/files/__name__/app/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'main-dir';
import sourcemaps from 'source-map-support';
import path from 'path';
import Application from './application';
Expand Down
1 change: 1 addition & 0 deletions blueprints/app/files/__name__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"test": "denali test"
},
"private": true,
"mainDir": "dist",
"engines": {
"node": ">=6.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class Blueprint extends Command {
let addons = findAddons(projectPkg && projectPkg.name !== 'denali');
debug(`discovering available blueprints from [ ${ addons.map((a) => a.pkg.name).join(', ') } ] addons`);
addons.forEach((addon) => {
this.discoverBlueprintsForAddon(blueprints, addon.pkg.name, path.join(addon.dir, 'blueprints'));
this.discoverBlueprintsForAddon(blueprints, addon.pkg.name, path.join(addon.distDir, 'blueprints'));
});
return blueprints;
}
Expand Down

0 comments on commit 4adf3aa

Please sign in to comment.