Skip to content

Commit c55fc4e

Browse files
committed
Properly check whether code is executed from source
1 parent 4e59bb0 commit c55fc4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class Action {
1010
}
1111

1212
static get isRunningFromSource() {
13-
return __dirname !== 'dist';
13+
return path.basename(__dirname) === 'model';
1414
}
1515

1616
static get name() {

0 commit comments

Comments
 (0)