Properly check whether code is executed from source
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user