-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bundle build for container (#8)
- Loading branch information
Showing
4 changed files
with
274 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** eslint-env node */ | ||
import esbuild from 'esbuild'; | ||
import path from 'path'; | ||
|
||
esbuild | ||
.build({ | ||
entryPoints: [path.join(__dirname, '..', 'src', 'index.ts')], | ||
outfile: path.join(__dirname, '..', 'dist', 'index.js'), | ||
platform: 'node', | ||
bundle: true, | ||
minify: process.env.node_env === 'production', | ||
external: [], | ||
sourcemap: true, | ||
tsconfig: path.join(__dirname, '..', 'tsconfig.json'), | ||
}) | ||
.catch(() => { | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.