Properly check whether code is executed from source

This commit is contained in:
Webber 2020-01-07 00:16:49 +01:00 committed by Webber Takken
parent 4e59bb0d2a
commit c55fc4eecd
2 changed files with 1 additions and 1 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -10,7 +10,7 @@ export default class Action {
} }
static get isRunningFromSource() { static get isRunningFromSource() {
return __dirname !== 'dist'; return path.basename(__dirname) === 'model';
} }
static get name() { static get name() {