Use absolute path

This commit is contained in:
Fabio Berger 2018-08-27 12:05:55 +01:00
parent 907972c466
commit e4fc8a8414

View File

@ -1,7 +1,5 @@
import { readFileSync } from 'fs'; import { readFileSync } from 'fs';
console.log('DIR', __dirname);
export const md = { export const md = {
introduction: readFileSync('lib/md/introduction.md').toString(), introduction: readFileSync(`${__dirname}/introduction.md`).toString(),
}; };