From 07b1726ac15126b353b27520a49692bb351be0e9 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 7 Dec 2020 19:54:51 +0000 Subject: [PATCH] load notion-enhancer from node_modules --- pkg/apply.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);` ); } }