Properly check whether code is executed from source

pull/10/head
Webber 2020-01-07 00:16:49 +01:00
parent 97acbdc03a
commit df17fb06d5
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() {