Skip to content

Commit

Permalink
fix(js): Correct file path for cjs.js
Browse files Browse the repository at this point in the history
closes: #23029
  • Loading branch information
ndcunningham committed Apr 29, 2024
1 parent cd7f3df commit 4ddd7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/executors/node/node.impl.ts
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 4ddd7c8

Please sign in to comment.