main
ts 37 lines 793 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 import {defineConfig} from 'tsup';
9
10 export default defineConfig({
11 entry: ['./src/index.ts'],
12 outDir: './dist',
13 external: [],
14 splitting: false,
15 sourcemap: false,
16 dts: false,
17 bundle: true,
18 format: 'cjs',
19 platform: 'node',
20 target: 'es2022',
21 banner: {
22 js: `#!/usr/bin/env node
23
24 /**
25 * Copyright (c) Meta Platforms, Inc. and affiliates.
26 *
27 * This source code is licensed under the MIT license found in the
28 * LICENSE file in the root directory of this source tree.
29 *
30 * @lightSyntaxTransform
31 * @noflow
32 * @nolint
33 * @preventMunge
34 * @preserve-invariant-messages
35 */`,
36 },
37 });