Skip to content

Commit

Permalink
fix(initializer): handle local templates correctly
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #87
  • Loading branch information
malept committed Jan 16, 2017
1 parent e7f6eeb commit 42bf745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/init-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async (dir, template, lintStyle) => {
d('using global template');
} catch (err) {
try {
templateModulePath = require(`electron-forge-template-${template}`);
templateModulePath = require.resolve(`electron-forge-template-${template}`);
d('using local template');
} catch (err2) {
throw `Failed to locate custom template: "${template}"\n\nTry \`npm install -g electron-forge-template-${template}\``;
Expand Down

0 comments on commit 42bf745

Please sign in to comment.