Merge pull request #136 from cloudflare/jacobmgevans/esm-support

Updating build script to convert to .mjs for ESM support
This commit is contained in:
Jacob M-G Evans 2023-08-09 11:28:16 -05:00 committed by GitHub
commit ce1ea4e7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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/**"