Skip to content

Commit

Permalink
Updating build script to convert to .mjs for ESM support
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobMGEvans committed Aug 9, 2023
1 parent d05a65f commit e420d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branding:
description: "Deploy your Cloudflare projects from GitHub using Wrangler"
runs:
using: "node16"
main: "dist/index.js"
main: "dist/index.mjs"
inputs:
apiToken:
description: "Your Cloudflare API Token"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"typescript"
],
"type": "module",
"main": "dist/index.js",
"main": "dist/index.mjs",
"scripts": {
"build": "npx ncc build ./src/index.ts",
"build": "npx ncc build ./src/index.ts && mv ./dist/index.js ./dist/index.mjs",
"test": "vitest",
"format": "prettier --write . --ignore-path ./dist/**",
"check": "prettier --check . --ignore-path ./dist/**"
Expand Down

0 comments on commit e420d29

Please sign in to comment.