Skip to content

Commit

Permalink
Merge pull request #2228 from colinhacks/resolve-entry
Browse files Browse the repository at this point in the history
fix: Resolve absolute path for `start` action
  • Loading branch information
kamilmysliwiec authored Aug 16, 2023
2 parents 671e5d4 + 106e1a8 commit f5f2d44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actions/start.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ export class StartAction extends BuildAction {
outputFilePath = join(outDirName, entryFile);
}

// Resolve to real file path
outputFilePath = require.resolve(outputFilePath);

let childProcessArgs: string[] = [];
const argsStartIndex = process.argv.indexOf('--');
if (argsStartIndex >= 0) {
Expand Down

0 comments on commit f5f2d44

Please sign in to comment.