mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
48 lines
925 B
TypeScript
48 lines
925 B
TypeScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import {defineConfig} from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['./src/index.ts'],
|
|
outDir: './dist',
|
|
external: [
|
|
'@babel/core',
|
|
'@babel/parser',
|
|
'chalk',
|
|
'fast-glob',
|
|
'ora',
|
|
'yargs',
|
|
'zod',
|
|
'zod-validation-error',
|
|
],
|
|
splitting: false,
|
|
sourcemap: false,
|
|
dts: false,
|
|
bundle: true,
|
|
format: 'cjs',
|
|
platform: 'node',
|
|
banner: {
|
|
js: `#!/usr/bin/env node
|
|
|
|
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @lightSyntaxTransform
|
|
* @noflow
|
|
* @nolint
|
|
* @preventMunge
|
|
* @preserve-invariant-messages
|
|
*/
|
|
|
|
"use no memo";`,
|
|
},
|
|
});
|