Skip to content

Commit 178613d

Browse files
Use .cjs extention
1 parent af19be7 commit 178613d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ inputs:
1010
default: "latest"
1111
runs:
1212
using: "node20"
13-
main: "dist/index.js"
13+
main: "dist/index.cjs"
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "install-cli-action",
33
"version": "1.0.0",
44
"description": "Install 1Password CLI into your GitHub Actions jobs",
5-
"main": "dist/index.js",
5+
"main": "dist/index.cjs",
66
"type": "module",
77
"types": "dist-lib/index.d.ts",
88
"exports": {
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsc -p tsconfig.build.json && ncc build ./src/index.ts -o dist",
15+
"build": "tsc -p tsconfig.build.json && ncc build ./src/index.ts -o dist && mv dist/index.js dist/index.cjs",
1616
"format": "prettier",
1717
"format:check": "npm run format -- --check ./",
1818
"format:write": "npm run format -- --write ./",

0 commit comments

Comments
 (0)