Skip to content

Commit 34ecb2f

Browse files
Copilotfelickz
andcommitted
fix: use .cjs extension for CommonJS bundle to avoid ES module conflicts
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent 9148819 commit 34ecb2f

File tree

5 files changed

+2
-5
lines changed

5 files changed

+2
-5
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ inputs:
1919
description: 'The output SARIF file path, defaults to the input SARIF file path'
2020
runs:
2121
using: 'node20'
22-
main: 'dist/index.js'
22+
main: 'dist/index.cjs'
File renamed without changes.
File renamed without changes.

dist/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"format": "prettier --write '**/*.ts'",
1010
"format-check": "prettier --check '**/*.ts'",
1111
"lint": "eslint src/**/*.ts",
12-
"package": "ncc build --source-map --license licenses.txt",
12+
"package": "ncc build --source-map --license licenses.txt --target es2015 -o dist && mv dist/index.js dist/index.cjs && mv dist/index.js.map dist/index.cjs.map",
1313
"test": "jest",
1414
"release": "release-it",
1515
"all": "npm run build && npm run format && npm run lint && npm run package"

0 commit comments

Comments
 (0)