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 {
fs.appendFile(
insertion_file,
`\n\n//notion-enhancer\nrequire('${realpath(
__dirname
)}/loader.js')(__filename, exports);`
`\n\n//notion-enhancer\nrequire('notion-enhancer/pkg/loader.js')(__filename, exports);`
);
}
}