mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
ef03a0feb9
* cleanup unused code * decouple unit testing feature and inso * tigthen up key value pairs array to reducer
27 lines
593 B
TypeScript
27 lines
593 B
TypeScript
import { build } from 'esbuild';
|
|
import alias from 'esbuild-plugin-alias';
|
|
import path from 'path';
|
|
|
|
async function main() {
|
|
await build({
|
|
entryPoints: ['./send-request/index.ts'],
|
|
outfile: '../insomnia-send-request/dist/index.js',
|
|
bundle: true,
|
|
platform: 'node',
|
|
target: 'esnext',
|
|
sourcemap: true,
|
|
format: 'cjs',
|
|
tsconfig: 'tsconfig.build.sr.json',
|
|
plugins: [
|
|
alias({
|
|
'electron': path.resolve(__dirname, './send-request/electron/index.js'),
|
|
}),
|
|
],
|
|
external: ['@getinsomnia/node-libcurl'],
|
|
});
|
|
|
|
process.exit(0);
|
|
}
|
|
|
|
main();
|