Skip to content

Commit

Permalink
Properly check whether code is executed from source
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed Jan 6, 2020
1 parent 4e59bb0 commit c55fc4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/model/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class Action {
}

static get isRunningFromSource() {
return __dirname !== 'dist';
return path.basename(__dirname) === 'model';
}

static get name() {
Expand Down

0 comments on commit c55fc4e

Please sign in to comment.