Skip to content

Commit

Permalink
refactor: rename .js files to .cjs after TypeScript compilation
Browse files Browse the repository at this point in the history
This change updates the build process to rename .js files to .cjs to ensure proper module resolution.
  • Loading branch information
gentlementlegen committed Oct 14, 2024
1 parent b42988f commit a5f0922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ runs:
shell: bash
run: |
yarn tsc --project tsconfig.json -m commonjs
find . -name "*.js" -not -path "./node_modules/*" -exec sh -c 'mv "$1" "${1%.js}.cjs"' _ {} \;
- name: Build project
shell: bash
Expand Down

0 comments on commit a5f0922

Please sign in to comment.