Properly check whether code is executed from source

pull/11/head v0.4
Webber 2020-01-07 00:16:49 +01:00 committed by Webber Takken
parent 4e59bb0d2a
commit c55fc4eecd
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

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