mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-22 01:53:24 +01:00
Updating build script to convert to .mjs for ESM support
This commit is contained in:
parent
d05a65f82b
commit
e420d29d0a
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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/**"
|
||||
|
|
Loading…
Reference in a new issue