mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-28 20:54:46 +01:00
Merge pull request #136 from cloudflare/jacobmgevans/esm-support
Updating build script to convert to .mjs for ESM support
This commit is contained in:
commit
ce1ea4e7c3
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ branding:
|
||||||
description: "Deploy your Cloudflare projects from GitHub using Wrangler"
|
description: "Deploy your Cloudflare projects from GitHub using Wrangler"
|
||||||
runs:
|
runs:
|
||||||
using: "node16"
|
using: "node16"
|
||||||
main: "dist/index.js"
|
main: "dist/index.mjs"
|
||||||
inputs:
|
inputs:
|
||||||
apiToken:
|
apiToken:
|
||||||
description: "Your Cloudflare API Token"
|
description: "Your Cloudflare API Token"
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
"typescript"
|
"typescript"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx ncc build ./src/index.ts",
|
"build": "npx ncc build ./src/index.ts && mv ./dist/index.js ./dist/index.mjs",
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"format": "prettier --write . --ignore-path ./dist/**",
|
"format": "prettier --write . --ignore-path ./dist/**",
|
||||||
"check": "prettier --check . --ignore-path ./dist/**"
|
"check": "prettier --check . --ignore-path ./dist/**"
|
||||||
|
|
Loading…
Reference in a new issue