Skip to content
Permalink
Browse files

fix(initializer): handle local templates correctly

ISSUES CLOSED: #87
  • Loading branch information
malept committed Jan 15, 2017
1 parent e7f6eeb commit 42bf745ad768637698bb8682bb08b7a0cb549234
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/init/init-custom.js
@@ -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}\``;

0 comments on commit 42bf745

Please sign in to comment.
You can’t perform that action at this time.