* init bsky-sync * add bsync models and config * rename bsky-sync to bsync * protos and gen for bsync service * start roughing-out bsync routes * adjust bsync model, validation * bsync auth, context, notify * implement bsync scan mute ops, listen for mute op event * setup basic bsync tests, misc fixes * rename some files * reorg bsync server routes * reorg bsync server routes * tests * test input validation to addMuteOperation * add db stats to bsync * add bsync service * redact bsync auth header from logs * upgrade typescript to v5.3 * prettier on codegened bsync files
19 lines
483 B
JavaScript
19 lines
483 B
JavaScript
const { nodeExternalsPlugin } = require('esbuild-node-externals')
|
|
|
|
const buildShallow =
|
|
process.argv.includes('--shallow') || process.env.ATP_BUILD_SHALLOW === 'true'
|
|
|
|
require('esbuild').build({
|
|
logLevel: 'info',
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
sourcemap: true,
|
|
outdir: 'dist',
|
|
platform: 'node',
|
|
external: [
|
|
// Referenced in pg driver, but optional and we don't use it
|
|
'pg-native',
|
|
],
|
|
plugins: buildShallow ? [nodeExternalsPlugin()] : [],
|
|
})
|