forked from nasa/earthdata-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesbuild.js
More file actions
31 lines (29 loc) · 637 Bytes
/
Copy pathesbuild.js
File metadata and controls
31 lines (29 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* This esbuild config will bundle all the lambda functions in the serverless/src directory
* and output them to the serverless/dist directory.
*
* This is currently only used for the local development environment.
*/
const { build } = require('esbuild')
build({
entryPoints: [
'serverless/src/**/handler.js'
],
bundle: true,
platform: 'node',
outdir: 'serverless/dist',
loader: {
'.ipynb': 'json',
'.svg': 'text'
},
external: [
'better-sqlite3',
'mysql',
'mysql2',
'oracledb',
'pg-native',
'pg-query-stream',
'sqlite3',
'tedious'
]
}).catch(() => process.exit(1))