Skip to content

Commit eeba7b1

Browse files
committed
chore: build per esbuild
1 parent 21ddb90 commit eeba7b1

File tree

11 files changed

+138
-76661
lines changed

11 files changed

+138
-76661
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: bahmutov/npm-install@v1
1313
- run: yarn build
1414

15-
- run: git add -f dist-ncc
15+
- run: git add -f build
1616

1717
- name: Commit build if it changed
1818
run: >

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/coverage
33
/dist
44
/node_modules
5-
/dist-ncc
65

76
npm-debug.log*
87
yarn-debug.log*

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branding:
55
color: green
66
runs:
77
using: node16
8-
main: dist-ncc/index.js
8+
main: build/index.js
99
inputs:
1010
debug:
1111
description: debug

build.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const { buildSync } = require('esbuild')
2+
3+
buildSync({
4+
entryPoints: ['src/action.ts'],
5+
bundle: true,
6+
platform: 'node',
7+
outfile: 'build/index.js',
8+
})

0 commit comments

Comments
 (0)