diff --git a/pkg/apply.js b/pkg/apply.js index ebfa5cb..0a3377c 100644 --- a/pkg/apply.js +++ b/pkg/apply.js @@ -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);` ); } }