Skip to content

Commit

Permalink
fix(js): Correct file path for cjs.js (#23081)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Apr 29, 2024
1 parent cd7f3df commit 1f6aba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/executors/node/node.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function getFileToRun(
function fileToRunCorrectPath(fileToRun: string): string {
if (fileExists(fileToRun)) return fileToRun;

const extensionsToTry = ['.cjs', '.mjs', 'cjs.js', '.esm.js'];
const extensionsToTry = ['.cjs', '.mjs', '.cjs.js', '.esm.js'];

for (const ext of extensionsToTry) {
const file = fileToRun.replace(/\.js$/, ext);
Expand Down

0 comments on commit 1f6aba0

Please sign in to comment.