diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..4315201 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": { + "@/*": ["./src/*"], + "datavis/src/*": ["./packages/datavis/src/*"] + } + } +} diff --git a/tsup.config.ts b/tsup.config.ts index 88b3922..a0a311d 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -51,6 +51,7 @@ export default defineConfig({ format: ['esm', 'cjs'], target: 'es2022', dts: true, + tsconfig: 'tsconfig.build.json', sourcemap: true, clean: true, external: [