From a4b8a2501e403819bb91f8c4d29e85df23fe3393 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Wed, 7 Aug 2024 19:45:27 +0700 Subject: [PATCH] build: bundle file with `.mjs` extension --- action.yml | 2 +- dist/{index.js => index.mjs} | 0 rollup.config.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename dist/{index.js => index.mjs} (100%) diff --git a/action.yml b/action.yml index 7694ae1..40faca1 100644 --- a/action.yml +++ b/action.yml @@ -34,4 +34,4 @@ outputs: value: ${{ steps.process-inputs.outputs.build-dir }} runs: using: node20 - main: dist/index.js + main: dist/index.mjs diff --git a/dist/index.js b/dist/index.mjs similarity index 100% rename from dist/index.js rename to dist/index.mjs diff --git a/rollup.config.js b/rollup.config.js index a29777b..fc82c23 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -5,6 +5,7 @@ export default { input: "src/index.ts", output: { dir: "dist", + entryFileNames: "[name].mjs", }, plugins: [nodeResolve(), typescript()], };