load notion-enhancer from node_modules

This commit is contained in:
David Bailey 2020-12-07 19:54:51 +00:00
parent 6670bf5550
commit 07b1726ac1

View File

@ -148,9 +148,7 @@ module.exports = async function ({ overwrite_version, friendly_errors } = {}) {
} else { } else {
fs.appendFile( fs.appendFile(
insertion_file, insertion_file,
`\n\n//notion-enhancer\nrequire('${realpath( `\n\n//notion-enhancer\nrequire('notion-enhancer/pkg/loader.js')(__filename, exports);`
__dirname
)}/loader.js')(__filename, exports);`
); );
} }
} }