Skip to content

Commit

Permalink
build: output mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jun 5, 2024
1 parent 2f7a427 commit 54bd25e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18-alpine

COPY dist/index.js /index.js
COPY dist/index.mjs /index.mjs

RUN apk add --no-cache git

ENTRYPOINT [ "node", "/index.js" ]
ENTRYPOINT [ "node", "/index.mjs" ]
File renamed without changes.
1 change: 1 addition & 0 deletions esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const options = {
format: 'esm',
outdir: 'dist',
outbase: 'src',
outExtension: { '.js': '.mjs' },
};

esbuild.build(options).catch(err => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "eslint-remote-tester-run-action",
"version": "0.0.1",
"description": "GitHub Action for running eslint-remote-tester",
"main": "dist/index.js",
"main": "dist/index.mjs",
"type": "module",
"repository": "https://github.com/AriPerkkio/eslint-remote-tester-run-action",
"homepage": "https://github.com/AriPerkkio/eslint-remote-tester-run-action",
Expand Down

0 comments on commit 54bd25e

Please sign in to comment.