Skip to content
Snippets Groups Projects
Commit 8dc7e475 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: relative lib require in config definitions

parent 9ebf3f7f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ function template(name, subdir = 'default/') {
const shortName = `${name.replace(/([A-Z])/g, '-$1').toLowerCase()}.hbs`;
const hbsContents = fs.readFileSync(
// Long path is so that it works whether code is run from lib or dist
path.resolve(__dirname, '../../lib/config/templates/', subdir, shortName),
path.resolve(__dirname, '../config/templates/', subdir, shortName),
'utf8'
);
// Strip off any trailing line break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment