From c55fc4eecd6f5d2a769112bb1fecb41d8b288bf9 Mon Sep 17 00:00:00 2001 From: Webber Date: Tue, 7 Jan 2020 00:16:49 +0100 Subject: [PATCH] Properly check whether code is executed from source --- dist/index.js | Bin 128255 -> 128270 bytes src/model/action.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index e2c42652e55bb0b01aa156ac4b7b91bb61ffa78a..a5f5ba4e2b14d824932fbd39abedde2bebaaf0c5 100644 GIT binary patch delta 51 zcmezWlD+R0`vzrwg-i`iy`;qA)V##pRE_xfl*}R!OVifYRw*|>B{iqnM1Q-9KI7@5 E003VT9{>OV delta 36 scmeBs#s2>#`vzrw!T9);%%Z%++*CzdTcwoD;*w@({q4^BjHizR01{vhKmY&$ diff --git a/src/model/action.js b/src/model/action.js index b20f8769..d3c08081 100644 --- a/src/model/action.js +++ b/src/model/action.js @@ -10,7 +10,7 @@ export default class Action { } static get isRunningFromSource() { - return __dirname !== 'dist'; + return path.basename(__dirname) === 'model'; } static get name() {