Skip to content

Commit

Permalink
fix: events folder relative to main
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoSponge committed Mar 29, 2020
1 parent 365b690 commit d7f28d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scriptwriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { readdir } = require('fs').promises;
const importGlobal = require('import-global');
const playwright = importGlobal('playwright');

const EVENTS_PATH = resolve(process.cwd(), 'lib/events');
const EVENTS_PATH = resolve(__dirname, 'events');
const EVENTS_DIR = readdir(EVENTS_PATH);
const EVENT_ASSIGN = 'assign';
const EVENT_ENTER = 'enter';
Expand Down

0 comments on commit d7f28d8

Please sign in to comment.