From a6d72e7d9ef344c3b76f1e2c108e88f38dcf3db8 Mon Sep 17 00:00:00 2001 From: Marek Piasecki Date: Sat, 21 Jan 2023 18:46:58 +0100 Subject: [PATCH] fix - proper path to pro-router.js --- bin/pro-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pro-router.js b/bin/pro-router.js index c3e7775..f435e40 100644 --- a/bin/pro-router.js +++ b/bin/pro-router.js @@ -4,7 +4,7 @@ var np = require('path'); var nfs = require('fs'); function file(path){ - return console.log(np.join(__dirname, path)); + np.join(require.main.filename, path); }; function read(file){ try {