Properly check whether code is executed from source
parent
97acbdc03a
commit
df17fb06d5
File diff suppressed because one or more lines are too long
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue