mirror of
https://github.com/colanode/colanode.git
synced 2025-12-16 03:37:51 +01:00
19 lines
538 B
TypeScript
19 lines
538 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm'],
|
|
target: 'es2022',
|
|
sourcemap: true,
|
|
/**
|
|
* The common package is using the internal packages approach, so it needs to
|
|
* be transpiled / bundled together with the deployed code.
|
|
*/
|
|
noExternal: ['@colanode/core'],
|
|
/**
|
|
* Do not use tsup for generating d.ts files because it can not generate type
|
|
* the definition maps required for go-to-definition to work in our IDE. We
|
|
* use tsc for that.
|
|
*/
|
|
});
|