main
ts 49 lines 970 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 '@babel/core',
15 '@babel/parser',
16 'chalk',
17 'fast-glob',
18 'ora',
19 'yargs',
20 'zod',
21 'zod/v4',
22 'zod-validation-error',
23 'zod-validation-error/v4',
24 ],
25 splitting: false,
26 sourcemap: false,
27 dts: false,
28 bundle: true,
29 format: 'cjs',
30 platform: 'node',
31 banner: {
32 js: `#!/usr/bin/env node
33
34 /**
35 * Copyright (c) Meta Platforms, Inc. and affiliates.
36 *
37 * This source code is licensed under the MIT license found in the
38 * LICENSE file in the root directory of this source tree.
39 *
40 * @lightSyntaxTransform
41 * @noflow
42 * @nolint
43 * @preventMunge
44 * @preserve-invariant-messages
45 */
46
47 "use no memo";`,
48 },
49 });